com.unity.mathematics 1.3.1
Source docsNotes: processedReleased August 2, 2023
Unity Compatibility
Minimum Unity: 2018.3
Package Dependencies
No dependency metadata provided.
✨ Features
- Added `math.square` to compute the square (x \* x).
- Added `math.orthonormal_basis` to compute an orthonormal basis from a single unit length vector.
- Added `math.sign` for int, int2, int3 and int4.
- Added `math.chgsign` for float, float2, float3, and float4.
- Added `math.Euler` to convert a quaternion to Euler angles.
- Added `math.angle` to compute the angle between two unit quaternions.
- Added `math.rotation` to extract a quaternion rotation from a float3x3 (that may have scale).
- Added `math.mulScale` to scale columns of a float3x3 with scaling coefficients in a float3.
- Added `math.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3.
- Added `AffineTransform` type.
- Added `PI2`, `PIHALF`, `TAU`, `TODEGREES` and `TORADIANS` constants.
📈 Improvements
- `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement.
- Modified `quaternion.nlerp` to be branchless.
- More descriptive parameter names for many methods in `math` class.
- Made `Il2CppEagerStaticClassConstructionAttribute` internal to avoid conflicts with other definitions outside of the package.
