Mathf

Functions

Static Functions

WithinEpsilon(float a, float b)
AlmostEqual(Vector2 a, Vector2 b, float epsilon)
PlaneFrom(Vector3 pointOnPlane, Vector3 normal)
SmoothStep(float value1, float value2, float amount)
MulT(float sin, float cos, Vector2 vectorToRotate)
tripleProduct(Vector2 A, Vector2 B, Vector2 C)
ResizeAndFit(float Width, float Height, float MaxWidth, float MaxHeight, Vector2 originalScale)
ProjectUntoAxis(Vector2 thisPoint, float axisRightAngle)
RotateAbout(Vector2 thisPoint, Vector2 pivot, float s, float c)
RotateAbout(Vector2 thisPoint, Vector2 pivot, float angle)
Rotate(Vector2 vec, float angle)
Abs(Vector2 vec)
Min(float a, float b)
Max(float a, float b)
ModWrapped(int a, int b)
ModWrapped(float a, float b)
Abs(float val)
Atan2(float y, float x)
Sin(float radians)
Cos(float radians)
Tan(float radians)
Floor(float value)
Round(float value)
Floor(Vector2 vector)
Round(Vector2 vector)
Ceiling(float value)
Ceiling(Vector2 vector)
LengthdirX(float length, float dirInRadians)
LengthdirY(float length, float dirInRadians)
Lengthdir(float length, float dirInRadians)
getSpeed(float velocityX, float velocityY)
getSpeed(Vector2 velocity)
PointDirection(float x1, float y1, float x2, float y2)
PointDirection(Vector2 pos1, Vector2 pos2)
InverseSquareRoot(float x)
MatrixCreateLookAt(Vector3 direction, Vector3 up)
QuadraticStep(float valueA, float valueB, float amount)
Sqrt(float val)
Sign(float val)
getGlidingVelocityTowards(Vector2 currentPosition, Vector2 currentVelocity, Vector2 targetPosition, float maxSpeed, float turnSpeed)
Distance(float x1, float y1, float x2, float y2)
Distance(Point pos1, Point pos2)
moveTowards(float currentPosition, float targetPosition, float currentVelocity, float maxVelocity, float acceleration, float decceleration)
Barycentric(float value1, float value2, float value3, float amount1, float amount2)
CatmullRom(float value1, float value2, float value3, float value4, float amount)
Clamp(float value, float min, float max)
Clamp(int value, int min, int max)
Distance(float value1, float value2)
Hermite(float value1, float tangent1, float value2, float tangent2, float amount)
Lerp(int a, int b, float amount)
Lerp(float a, float b, float amount)
WrapAngle(float angle)
LerpAngle(float current, float designated, float amt)
AngleDifference(float sourceAngle, float targetAngle)
Approach(float value, float toApproach, float amount)
Approach(Vector2 value, Vector2 toApproach, float amount)
ApproachAngle(float curAngle, float targetAngle, float maxChange)
transformX(float positionX, float positionY, Matrix4x4 matrix)
transformY(float positionX, float positionY, Matrix4x4 matrix)