Computes absolute value of integer.
number
number
类 Vec3 结构
绝对值最大的分量
Tests whether or not the arguments have approximately the same value by given maxDiff
The first number to test.
The second number to test.
Maximum difference.
True if the numbers are approximately equal, false otherwise.
Clamps a value between a minimum float and maximum float value.
Clamps a value between 0 and 1.
Counts number of trailing zeros.
Extracts the nth interleaved component.
提取三个数字中的第n个交错分量。
Tests whether or not the arguments have approximately the same value, within an absolute
or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less
than or equal to 1.0, and a relative tolerance is used for larger values)
The first number to test.
The second number to test.
True if the numbers are approximately equal, false otherwise.
Interleave bits of 2 coordinates with 16 bits. Useful for fast quadtree codes.
Interleave bits of 3 coordinates, each with 10 bits. Useful for fast octree codes.
Returns ratio of a value within a given range.
Start value.
End value.
Given value.
The ratio between [from, to].
Checks if a number is a power of two.
The interpolation coefficient.
Computes log base 10 of v.
Computes log base 2 of v.
Computes maximum of integers x and y.
Computes minimum of integers x and y.
Compute the lexicographically next bit permutation
Rounds to next power of 2.
The the next power of two.
Computes parity of word.
Returns time wrapped in ping-pong mode.
Time start at 0.
Time of one cycle.
The time wrapped in the first cycle.
计算传入数字二进制表示中 1 的数量。
Rounds down to previous power of 2.
Linear congruential generator using Hull-Dobell Theorem.
The random seed.
The pseudo random.
Returns a floating-point pseudo-random number between min (inclusive) and max (exclusive).
The random number.
Returns a pseudo-random integer between min (inclusive) and max (exclusive).
The random integer.
Returns a floating-point random number between min (inclusive) and max (exclusive).
The random number.
Returns a random integer between min (inclusive) and max (exclusive).
The random integer.
The convenient method to create a new Rect.
Specified Rect.
new Rect(rect)
The minimum X coordinate of the rectangle.
The minimum Y coordinate of the rectangle.
The width of the rectangle, measured from the X position.
The height of the rectangle, measured from the Y position.
new Rect(x, y, width, height)
Returns float remainder for t / length.
Time start at 0.
Time of one cycle.
The Time wrapped in the first cycle.
Reverse bits in a 32 bit word.
Returns -1, 0, +1 depending on sign of x.
Convert Radian To Degree
Angle in Radian
Convert Degree To Radian
Angle in Degrees
Generated using TypeDoc
Bit twiddling hacks for JavaScript.
Author: Mikola Lysenko
Ported from Stanford bit twiddling hack library: http://graphics.stanford.edu/~seander/bithacks.html