Crate fyrox_math
source ·Modules§
- Rectangle packer packs small rectangles into a bigger one.
- Quadrilateral (quad) tree is used for space partitioning and fast spatial queries.
Structs§
- A rectangle defined by position and size.
Enums§
Traits§
- Arbitrary number.
Functions§
- Tries to find a point closest to given point.
- Returns a tuple of (point index; triangle index) closest to the given point.
- Returns a tuple of (point index; triangle index) closest to the given point.
- There are two versions of remainder, the standard
%
operator which doesx - (x/y).trunc()*y
and IEEE remainder which doesx - (x/y).round()*y
. - Returns rotation quaternion that represents rotation basis with Z axis aligned on
vec
. This function handles singularities for you.