Class AstarMath
Utility functions for working with numbers and strings.
Public Static Methods
Returns a point on a cubic bezier curve.
Returns the approximate shortest squared distance between x,z and the line p-q.
Returns the approximate shortest squared distance between x,z and the line p-q.
Returns the squared distance between c and the line a-b.
Returns a nicely formatted string for the number of bytes (KiB, MiB, GiB etc).
Converts an HSV color to an RGB color.
Returns a nice color from int i with alpha a.
Maps a value between startMin and startMax to be between 0 and 1.
Maps a value between startMin and startMax to be between targetMin and targetMax.
Returns the closest point on the line.
Factor of the nearest point on the segment.
Factor of the nearest point on the segment.
Returns the closest point on the line segment.
Returns the closest point on the line segment on the XZ plane.
Squared distance between two points on the XZ plane.
Private/Protected Members
Returns bit number b from int a.