Introdction
The math package contains various useful classes for dealing with problems in geometry, linear algebra, collision detection, interpolation, and common unit conversions.Math包里包含了多种类来处理几何,线性代数,插值,和常用单位转换等功能。
The MathUtils (code) class covers a number of useful odds and ends. There is a handy static
Random
member to avoid instantiating one in your own code. Using the same random instance throughout your code can also ensure consistently deterministic behavior as long as you store the seed value used. There are constants for conversion between radians and degrees as well as look-up tables for the sine and cosine functions. There are also float
versions of common