This repository was archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathMaths.html
More file actions
184 lines (162 loc) · 27.9 KB
/
Maths.html
File metadata and controls
184 lines (162 loc) · 27.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html>
<head>
<title>luxe - </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="../../../images/favicon.png" />
<link rel="stylesheet" type="text/css" href="../../../css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="../../../css/code.css" media="all">
<link rel="stylesheet" type="text/css" href="../../../css/font.css" media="all">
<link rel="stylesheet" type="text/css" href="../../../css/tooltipster.css" media="all">
<link rel="stylesheet" type="text/css" href="../../../css/tooltipster-shadow.css" media="all">
<script src="../../../js/jquery-2.0.3.min.js"> </script>
<script src="../../../js/jquery.tooltipster.min.js"> </script>
<script>
$(document).ready(function() {
$('.section').css('display','none');
$('.readmore').click(function(e){
var _child = $(this).parent().find('.section').first();
var _opp = 'block';
if( _child.css('display') == 'block' ) {
_opp = 'none';
} else {
}
_child.css('display', _opp);
});
$('div.sample').on('click', function(e){
//get the data tag
var content = $(this).attr('data-content');
//remove clicking handler
$(this).off('click');
//replace the content!
$(this).html('<iframe src="'+content+'" sandbox="allow-same-origin allow-scripts" style="overflow:hidden; scrollbar:none; border: 0; width:640px; height:427px;"></iframe> ')
});
$('.tooltip').each(function(e){
var c = $(this).attr('data-tooltip');
$(this).tooltipster({
content:$('<span>' + c + '</span>'),
interactive:true,
theme:'tooltipster-shadow'
});
});
}); //document.ready
!function(g,s,q,r,d){r=g[r]=g[r]||function(){(r.q=r.q||[]).push(
arguments)};d=s.createElement(q);q=s.getElementsByTagName(q)[0];
d.src='//d1l6p2sc9645hc.cloudfront.net/tracker.js';q.parentNode.
insertBefore(d,q)}(window,document,'script','_gs');
_gs('GSN-518437-J');
</script>
</head>
<body>
<div class="content">
<p><a href="../../../api/index.html"><img src="../../../images/logo.png" alt="Logo"></a></p>
<p><hr/>
<a href="#" id="search_bar" onclick="return;"><div> search API <em>(or start typing anywhere)</em> </div></a></p>
<hr/>
<script src="../../../js/omnibar.js"> </script>
<link rel="stylesheet" type="text/css" href="../../../css/omnibar.css" media="all">
<div id="omnibar"> <a href="#" onclick="return" id="omnibar_close"></a> <input id="omnibar_text" type="text" placeholder="search types..."></input></div>
<script id="typelist" data-relpath="../../../" data-types="Luxe,luxe.Audio,luxe.AudioEvent,luxe.AudioHandle,luxe.AudioInstance,luxe.AudioSource,luxe.AudioState,luxe.BitmapFontInfo,luxe.BytesInfo,luxe.Camera,luxe.Circle,luxe.Color,luxe.ColorHSL,luxe.ColorHSV,luxe.Component,luxe.Cursor,luxe.Debug,luxe.DebugError,luxe.Draw,luxe.EmitHandler,luxe.Emitter,luxe.Engine,luxe.Entity,luxe.Ev,luxe.Events,luxe.Game,luxe.GameConfig,luxe.GamepadEvent,luxe.GamepadEventType,luxe.HandlerList,luxe.ID,luxe.IO,luxe.Input,luxe.InputEvent,luxe.InputEventType,luxe.InteractState,luxe.ItemInfo,luxe.JSONInfo,luxe.Key,luxe.KeyEvent,luxe.Log,luxe.Matrix,luxe.Mesh,luxe.ModState,luxe.MouseButton,luxe.MouseEvent,luxe.NineSlice,luxe.Objects,luxe.Parcel,luxe.ParcelChange,luxe.ParcelEvent,luxe.ParcelList,luxe.ParcelProgress,luxe.ParcelState,luxe.Particle,luxe.ParticleEmitter,luxe.ParticleSystem,luxe.Physics,luxe.PhysicsEngine,luxe.PhysicsEvent,luxe.ProjectionType,luxe.Quaternion,luxe.Rectangle,luxe.ResourceEvent,luxe.ResourceState,luxe.ResourceStats,luxe.ResourceType,luxe.Resources,luxe.Scan,luxe.Scene,luxe.Screen,luxe.ShaderInfo,luxe.SizeMode,luxe.SoundInfo,luxe.Sprite,luxe.State,luxe.States,luxe.Tag,luxe.Text,luxe.TextAlign,luxe.TextEvent,luxe.TextEventType,luxe.TextInfo,luxe.TextureInfo,luxe.Timer,luxe.TouchEvent,luxe.Transform,luxe.UserConfig,luxe.Vec,luxe.Vector,luxe.Visual,luxe.WindowEvent,luxe.WindowEventData,luxe.WindowEventType,luxe._Emitter.EmitNode,luxe._Ev.Ev_Impl_,luxe._Events.EventConnection,luxe._Events.EventObject,luxe._Input.MouseButton_Impl_,luxe._Log.LogError,luxe._NineSlice.Slice,luxe._Parcel.ParcelEvent_Impl_,luxe._Parcel.ParcelState_Impl_,luxe._Particles.ParticleEmitterInitData,luxe._Physics.PhysicsEvent_Impl_,luxe._Resources.ResourceEvent_Impl_,luxe._Resources.ResourceState_Impl_,luxe._Resources.ResourceType_Impl_,luxe.collision.Collision,luxe.collision.Results,luxe.collision.ResultsIterator,luxe.collision.ShapeDrawer,luxe.collision.ShapeDrawerLuxe,luxe.collision._Collision.Constructible,luxe.collision.data.RayCollision,luxe.collision.data.RayCollisionHelper,luxe.collision.data.RayIntersection,luxe.collision.data.ShapeCollision,luxe.collision.sat.SAT2D,luxe.collision.shapes.Circle,luxe.collision.shapes.InfiniteState,luxe.collision.shapes.Polygon,luxe.collision.shapes.Ray,luxe.collision.shapes.Shape,luxe.components.Components,luxe.components.cameras.FlyCamera,luxe.components.physics.nape.BoxCollider,luxe.components.physics.nape.BoxColliderOptions,luxe.components.physics.nape.CircleCollider,luxe.components.physics.nape.CircleColliderOptions,luxe.components.physics.nape.NapeBody,luxe.components.physics.nape.NapeBodyOptions,luxe.components.physics.nape.PolygonCollider,luxe.components.physics.nape.PolygonColliderOptions,luxe.components.render.MeshComponent,luxe.components.sprite.SpriteAnimation,luxe.components.sprite.SpriteAnimationData,luxe.components.sprite.SpriteAnimationEventData,luxe.components.sprite.SpriteAnimationFrame,luxe.components.sprite.SpriteAnimationFrameEvent,luxe.components.sprite.SpriteAnimationFrameSource,luxe.components.sprite.SpriteAnimationType,luxe.debug.BatcherDebugView,luxe.debug.DebugInspectorOptions,luxe.debug.DebugView,luxe.debug.Inspector,luxe.debug.ProfilerDebugView,luxe.debug.RenderStats,luxe.debug.SceneDebugView,luxe.debug.StatsDebugView,luxe.debug.TraceDebugView,luxe.debug._ProfilerDebugView.ProfilerBar,luxe.debug._ProfilerDebugView.ProfilerGraph,luxe.debug._ProfilerDebugView.ProfilerValue,luxe.importers.bitmapfont.BitmapFontData,luxe.importers.bitmapfont.BitmapFontParser,luxe.importers.bitmapfont.Character,luxe.importers.obj.Data,luxe.importers.obj.Normal,luxe.importers.obj.Reader,luxe.importers.obj.UV,luxe.importers.obj.Vector,luxe.importers.obj.Vertex,luxe.importers.texturepacker.TexturePackerData,luxe.importers.texturepacker.TexturePackerFrame,luxe.importers.texturepacker.TexturePackerJSON,luxe.importers.texturepacker.TexturePackerJSONType,luxe.importers.texturepacker.TexturePackerMeta,luxe.importers.texturepacker.TexturePackerRect,luxe.importers.texturepacker.TexturePackerSize,luxe.importers.texturepacker.TexturePackerSpriteAnimation,luxe.importers.tiled.TiledImage,luxe.importers.tiled.TiledImageLayer,luxe.importers.tiled.TiledLayer,luxe.importers.tiled.TiledMap,luxe.importers.tiled.TiledMapData,luxe.importers.tiled.TiledMapOptions,luxe.importers.tiled.TiledObject,luxe.importers.tiled.TiledObjectGroup,luxe.importers.tiled.TiledObjectType,luxe.importers.tiled.TiledPolyObject,luxe.importers.tiled.TiledPropertyTile,luxe.importers.tiled.TiledTile,luxe.importers.tiled.TiledTileset,luxe.importers.tiled.TiledUtil,luxe.macros.BuildVersion,luxe.macros.ComponentRules,luxe.macros.EntityRules,luxe.options.AudioResourceOptions,luxe.options.BatcherOptions,luxe.options.BitmapFontOptions,luxe.options.BytesResourceOptions,luxe.options.CameraOptions,luxe.options.CircleGeometryOptions,luxe.options.ColorOptions,luxe.options.ComponentOptions,luxe.options.DrawArcOptions,luxe.options.DrawBoxOptions,luxe.options.DrawCircleOptions,luxe.options.DrawLineOptions,luxe.options.DrawNgonOptions,luxe.options.DrawPlaneOptions,luxe.options.DrawPolygonOptions,luxe.options.DrawRectangleOptions,luxe.options.DrawRingOptions,luxe.options.DrawTextureOptions,luxe.options.EntityOptions,luxe.options.GeometryOptions,luxe.options.JSONResourceOptions,luxe.options.LineGeometryOptions,luxe.options.LoadAudioOptions,luxe.options.LoadFontOptions,luxe.options.LoadShaderOptions,luxe.options.LoadTextureOptions,luxe.options.LuxeCameraOptions,luxe.options.MeshOptions,luxe.options.NineSliceOptions,luxe.options.ParcelOptions,luxe.options.ParcelProgressOptions,luxe.options.ParticleEmitterOptions,luxe.options.ParticleOptions,luxe.options.PlaneGeometryOptions,luxe.options.QuadGeometryOptions,luxe.options.RectangleGeometryOptions,luxe.options.RenderProperties,luxe.options.RenderTextureOptions,luxe.options.ResourceOptions,luxe.options.ShaderOptions,luxe.options.SpriteOptions,luxe.options.StateOptions,luxe.options.StatesOptions,luxe.options.TextOptions,luxe.options.TextResourceOptions,luxe.options.TextureOptions,luxe.options.TileLayerOptions,luxe.options.TileOptions,luxe.options.TilemapOptions,luxe.options.TilemapVisualOptions,luxe.options.TilesetOptions,luxe.options.TransformProperties,luxe.options.VisualOptions,luxe.options._DrawOptions.DrawOptions,luxe.physics.nape.DebugDraw,luxe.physics.nape.PhysicsNape,luxe.physics.nape._DebugDraw.CachedGeometry,luxe.resource.AudioResource,luxe.resource.BytesResource,luxe.resource.JSONResource,luxe.resource.Resource,luxe.resource.TextResource,luxe.structural.BST,luxe.structural.BSTNode,luxe.structural.BSTTraverseMethod,luxe.structural.Bag,luxe.structural.BalancedBST,luxe.structural.BalancedBSTIterator,luxe.structural.BalancedBSTNode,luxe.structural.BalancedBSTTraverseMethod,luxe.structural.Cache,luxe.structural.Heap,luxe.structural.OrderedMap,luxe.structural.OrderedMapIterator,luxe.structural.Pool,luxe.structural.Stack,luxe.structural.StackNode,luxe.structural._Bag.BagNode,luxe.structural._BalancedBST.NodeColor,luxe.tilemaps.Isometric,luxe.tilemaps.IsometricVisual,luxe.tilemaps.Ortho,luxe.tilemaps.OrthoVisual,luxe.tilemaps.Tile,luxe.tilemaps.TileArray,luxe.tilemaps.TileLayer,luxe.tilemaps.TileOffset,luxe.tilemaps.Tilemap,luxe.tilemaps.TilemapOrientation,luxe.tilemaps.TilemapVisual,luxe.tilemaps.TilemapVisualLayerGeometry,luxe.tilemaps.Tileset,luxe.tween.Actuate,luxe.tween.BezierPath,luxe.tween.ComponentPath,luxe.tween.IComponentPath,luxe.tween.LinearPath,luxe.tween.MotionPath,luxe.tween.ObjectHash,luxe.tween.RotationPath,luxe.tween._Actuate.TweenTimer,luxe.tween.actuators.GenericActuator,luxe.tween.actuators.IGenericActuator,luxe.tween.actuators.MethodActuator,luxe.tween.actuators.MotionPathActuator,luxe.tween.actuators.PropertyDetails,luxe.tween.actuators.PropertyPathDetails,luxe.tween.actuators.SimpleActuator,luxe.tween.easing.Back,luxe.tween.easing.BackEaseIn,luxe.tween.easing.BackEaseInOut,luxe.tween.easing.BackEaseOut,luxe.tween.easing.Bounce,luxe.tween.easing.BounceEaseIn,luxe.tween.easing.BounceEaseInOut,luxe.tween.easing.BounceEaseOut,luxe.tween.easing.Cubic,luxe.tween.easing.CubicEaseIn,luxe.tween.easing.CubicEaseInOut,luxe.tween.easing.CubicEaseOut,luxe.tween.easing.Elastic,luxe.tween.easing.ElasticEaseIn,luxe.tween.easing.ElasticEaseInOut,luxe.tween.easing.ElasticEaseOut,luxe.tween.easing.Expo,luxe.tween.easing.ExpoEaseIn,luxe.tween.easing.ExpoEaseInOut,luxe.tween.easing.ExpoEaseOut,luxe.tween.easing.IEasing,luxe.tween.easing.Linear,luxe.tween.easing.LinearEaseNone,luxe.tween.easing.Quad,luxe.tween.easing.QuadEaseIn,luxe.tween.easing.QuadEaseInOut,luxe.tween.easing.QuadEaseOut,luxe.tween.easing.Quart,luxe.tween.easing.QuartEaseIn,luxe.tween.easing.QuartEaseInOut,luxe.tween.easing.QuartEaseOut,luxe.tween.easing.Quint,luxe.tween.easing.QuintEaseIn,luxe.tween.easing.QuintEaseInOut,luxe.tween.easing.QuintEaseOut,luxe.tween.easing.Sine,luxe.tween.easing.SineEaseIn,luxe.tween.easing.SineEaseInOut,luxe.tween.easing.SineEaseOut,luxe.types.user.Game,luxe.utils.GeometryUtils,luxe.utils.Maths,luxe.utils.Random,luxe.utils.Utils,luxe.utils.unifill.CodePoint,luxe.utils.unifill.CodePointIter,luxe.utils.unifill.Exception,luxe.utils.unifill.InternalEncoding,luxe.utils.unifill.InternalEncodingBackwardIter,luxe.utils.unifill.InternalEncodingIter,luxe.utils.unifill.Unicode,luxe.utils.unifill.Unifill,luxe.utils.unifill.Utf16,luxe.utils.unifill.Utf32,luxe.utils.unifill.Utf8,luxe.utils.unifill._CodePoint.CodePoint_Impl_,luxe.utils.unifill._InternalEncoding.UtfX,luxe.utils.unifill._Utf16.StringU16,luxe.utils.unifill._Utf16.StringU16Buffer,luxe.utils.unifill._Utf16.StringU16Buffer_Impl_,luxe.utils.unifill._Utf16.StringU16_Impl_,luxe.utils.unifill._Utf16.Utf16Impl,luxe.utils.unifill._Utf16.Utf16_Impl_,luxe.utils.unifill._Utf32.Utf32_Impl_,luxe.utils.unifill._Utf8.StringU8,luxe.utils.unifill._Utf8.StringU8_Impl_,luxe.utils.unifill._Utf8.Utf8Impl,luxe.utils.unifill._Utf8.Utf8_Impl_,phoenix.BatchState,phoenix.Batcher,phoenix.BatcherEventType,phoenix.BatcherKey,phoenix.BitmapFont,phoenix.BlendEquation,phoenix.BlendMode,phoenix.Camera,phoenix.Circle,phoenix.ClampType,phoenix.Color,phoenix.ColorHSL,phoenix.ColorHSV,phoenix.ComponentOrder,phoenix.DualQuaternion,phoenix.FOVType,phoenix.FilterType,phoenix.Matrix,phoenix.MatrixTransform,phoenix.PrimitiveType,phoenix.ProjectionType,phoenix.Quaternion,phoenix.Ray,phoenix.Rectangle,phoenix.RenderPass,phoenix.RenderPath,phoenix.RenderState,phoenix.RenderTexture,phoenix.Renderer,phoenix.RendererStats,phoenix.Shader,phoenix.Spatial,phoenix.TextAlign,phoenix.Texture,phoenix.TextureDataType,phoenix.TextureFormat,phoenix.TextureID,phoenix.TextureSubmitTarget,phoenix.TextureType,phoenix.Transform,phoenix.Uniforms,phoenix.Vec,phoenix.Vector,phoenix._Batcher.BatcherEventType_Impl_,phoenix._Batcher.BlendEquation_Impl_,phoenix._Batcher.BlendMode_Impl_,phoenix._Batcher.PrimitiveType_Impl_,phoenix._BitmapFont.TextAlign_Impl_,phoenix._Renderer.DefaultShader,phoenix._Renderer.DefaultShaders,phoenix._Shader.Location,phoenix._Shader.Uniform,phoenix._Texture.ClampSlot,phoenix._Texture.ClampSlot_Impl_,phoenix._Texture.ClampType_Impl_,phoenix._Texture.FilterSlot,phoenix._Texture.FilterSlot_Impl_,phoenix._Texture.FilterType_Impl_,phoenix._Texture.TextureSubmitTarget_Impl_,phoenix._Texture.TextureType_Impl_,phoenix._Vector.ComponentOrder_Impl_,phoenix._Vector.Vec_Impl_,phoenix.geometry.ArcGeometry,phoenix.geometry.CircleGeometry,phoenix.geometry.EvTextGeometry,phoenix.geometry.Geometry,phoenix.geometry.GeometryKey,phoenix.geometry.GeometryState,phoenix.geometry.LineGeometry,phoenix.geometry.PackedQuad,phoenix.geometry.PackedQuadOptions,phoenix.geometry.QuadGeometry,phoenix.geometry.QuadPackGeometry,phoenix.geometry.RectangleGeometry,phoenix.geometry.RingGeometry,phoenix.geometry.TextGeometry,phoenix.geometry.TextGeometryOptions,phoenix.geometry.TextureCoord,phoenix.geometry.TextureCoordSet,phoenix.geometry.Vertex,phoenix.geometry._TextGeometry.EvTextGeometry_Impl_,phoenix.utils.Rendering"></script>
<p><h1>Maths</h1>
<small>
<code><a target="_blank" href="https:/github.com/underscorediscovery/luxe/blob/master/luxe/utils/Maths.hx">luxe.utils.Maths</a></code>
</small></p>
<hr/>
<p><code>class</code></p>
<hr/>
<p> </p>
<p><h3>Members</h3> <hr/><span class="member apipage">
<a name="_180_OVER_PI"><a class="lift" href="#_180_OVER_PI">_180_OVER_PI</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">_180_OVER_PI : <a href="http://api.haxe.org/Float.html">Float</a></code><br/></span>
<span class="small_desc_flat">Used by <code>degrees()</code> and <code>radians()</code>, use those to convert, unless needed</span><br/><span class="member apipage">
<a name="_PI_OVER_180"><a class="lift" href="#_PI_OVER_180">_PI_OVER_180</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">_PI_OVER_180 : <a href="http://api.haxe.org/Float.html">Float</a></code><br/></span>
<span class="small_desc_flat">Used by <code>degrees()</code> and <code>radians()</code>, use those to convert, unless needed</span><br/></p>
<p><h3>Methods</h3> <hr/><span class="method apipage">
<a name="clamp"><a class="lift" href="#clamp">clamp</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">clamp(value:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, a:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, b:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="clamp_bottom"><a class="lift" href="#clamp_bottom">clamp_bottom</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">clamp_bottom(value:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, a:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="clampi"><a class="lift" href="#clampi">clampi</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">clampi(value:<a href="http://api.haxe.org/Int.html">Int</a><span></span>, a:<a href="http://api.haxe.org/Int.html">Int</a><span></span>, b:<a href="http://api.haxe.org/Int.html">Int</a><span></span>) : <a href="http://api.haxe.org/Int.html">Int</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="degrees"><a class="lift" href="#degrees">degrees</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">degrees(radians:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Convert a number from radians to degrees</span></p>
<p></span>
<span class="method apipage">
<a name="fixed"><a class="lift" href="#fixed">fixed</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">fixed(value:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, precision:<a href="http://api.haxe.org/Int.html">Int</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="lerp"><a class="lift" href="#lerp">lerp</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">lerp(value:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, target:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, t:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="map_linear"><a class="lift" href="#map_linear">map_linear</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">map_linear(value:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, a1:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, a2:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, b1:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, b2:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="nearest_power_of_two"><a class="lift" href="#nearest_power_of_two">nearest_power_of_two</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">nearest_power_of_two(_value:<a href="http://api.haxe.org/Int.html">Int</a><span></span>) : <a href="http://api.haxe.org/Int.html">Int</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="radians"><a class="lift" href="#radians">radians</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">radians(degrees:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Convert a number from degrees to radians</span></p>
<p></span>
<span class="method apipage">
<a name="sign"><a class="lift" href="#sign">sign</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">sign(x:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Int.html">Int</a></code><br/><span class="small_desc_flat">Return the sign of a number, <code>1</code> if >= 0 and <code>-1</code> if < 0</span></p>
<p></span>
<span class="method apipage">
<a name="sign0"><a class="lift" href="#sign0">sign0</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">sign0(x:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Int.html">Int</a></code><br/><span class="small_desc_flat">Return the sign of a number, <code>0</code> is returned as <code>0</code>, <code>1</code> if > <code>0</code> and <code>-1</code> if < <code>0</code></span></p>
<p></span>
<span class="method apipage">
<a name="smootherstep"><a class="lift" href="#smootherstep">smootherstep</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">smootherstep(x:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, min:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, max:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="smoothstep"><a class="lift" href="#smoothstep">smoothstep</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">smoothstep(x:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, min:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, max:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="vec_dot"><a class="lift" href="#vec_dot">vec_dot</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">vec_dot(x:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, y:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, otherx:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, othery:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Returns the dot product between two vectors by components</span></p>
<p></span>
<span class="method apipage">
<a name="vec_length"><a class="lift" href="#vec_length">vec_length</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">vec_length(x:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, y:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Get the length of a vector by components</span></p>
<p></span>
<span class="method apipage">
<a name="vec_lengthsq"><a class="lift" href="#vec_lengthsq">vec_lengthsq</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">vec_lengthsq(x:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, y:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Get the length squared of a vector by components</span></p>
<p></span>
<span class="method apipage">
<a name="vec_normalize"><a class="lift" href="#vec_normalize">vec_normalize</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">vec_normalize(length:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, component:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Normalize the component of a vector based on it’s length</span></p>
<p></span>
<span class="method apipage">
<a name="weighted_avg"><a class="lift" href="#weighted_avg">weighted_avg</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">weighted_avg(value:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, target:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, slowness:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="within_range"><a class="lift" href="#within_range">within_range</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">within_range(value:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, start_range:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, end_range:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Bool.html">Bool</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="wrap_angle"><a class="lift" href="#wrap_angle">wrap_angle</a></a><span class="inline-block static">inline</span><span class="inline-block static">static</span><div class="clear"></div>
<code class="signature apipage">wrap_angle(degrees:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, lower:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, upper:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat"></span></p>
<p></span></p>
<hr/>
<p>
</p>
</div>
</body>
</html>