Modules§
- aabb
- curve
- frustum
- octree
- pack
- Rectangle packer packs small rectangles into a bigger one.
- plane
- quadtree
- Quadrilateral (quad) tree is used for space partitioning and fast spatial queries.
- ray
- segment
- triangulator
Structs§
- Option
Rect - A version of Rect that is optionally None. This simplifies the process of creating a bounding rect from a series of points, as it can start as None and then build an initial rect from the first point.
- Rect
- A rectangle defined by position and size.
- Smooth
Angle - Triangle
Definition - Triangle
Edge
Enums§
Traits§
- Matrix3
Ext - Matrix4
Ext - Number
- Arbitrary number.
- Position
Provider - Vector2
Ext - Vector3
Ext
Functions§
- barycentric_
is_ inside - barycentric_
to_ world - classify_
plane - cubicf
- cubicf_
derivative - get_
arbitrary_ line_ perpendicular - get_
barycentric_ coords - get_
barycentric_ coords_ 2d - get_
closest_ point - Tries to find a point closest to given point.
- get_
closest_ point_ triangle_ set - Returns a tuple of (point index; triangle index) closest to the given point.
- get_
closest_ point_ triangles - Returns a tuple of (point index; triangle index) closest to the given point.
- get_
farthest_ point - get_
polygon_ normal - get_
signed_ triangle_ area - ieee_
remainder - There are two versions of remainder, the standard
%
operator which doesx - (x/y).trunc()*y
and IEEE remainder which doesx - (x/y).round()*y
. - inf_
sup_ cubicf - is_
point_ inside_ 2d_ triangle - is_
point_ inside_ triangle - lerpf
- m4x4_
approx_ eq - quat_
from_ euler - ray_
rect_ intersection - round_
to_ step - solve_
quadratic - spherical_
to_ cartesian - triangle_
area - vec3_
to_ vec2_ by_ plane - vector_
to_ quat - Returns rotation quaternion that represents rotation basis with Z axis aligned on
vec
. This function handles singularities for you. - wrap_
angle - wrapf