Crate del_geo_core Copy item path Source aabb method common in 2D or 3D Axis-Aligned Bounding Box (AABB) aabb2 methods for 2D Axis-aligned Bounding Box (AABB)
the data structure [Real;4] = [min_x, min_y, max_x, max_y]
aabb3 methods for 3D Axis-aligned Bounding Box (AABB) bezier_cubic methods for cubic Bezier curve bezier_quadratic methods for quadratic Bezier curve ccd2 methods for 2D Continuous Collision Detection (CCD) ccd3 methods for 3D Continuous Collision Detection (CCD) curve_linear_coords methods for 3x3 matrix edge methods for 2D or 3D edge (line segment) edge2 methods for 2D edge (line segment) edge3 methods for 3D edge (line segment) hex methods for hexahedron.
the coordinates of the points are stored in the array of array as[[Real;3];8]
.
where [xyz, Xyz, XYz, xYz, xyZ, XyZ, XYZ, xYZ]
. line2 methods for 2D line (parameterized by origin and direction vector) mat2_col_major methods for 2x2 matrix (column major storage) mat2_sym symmetric matrix [[a,b],[b,c]]
parameterized as [a,b,c]
mat2x3_col_major methods for 2x3 matrix used for affine transformation especially for Gaussian splatting mat3_array_of_array methods for 3x3 matrix mat3_col_major methods for 3x3 matrix where storage is column major order mat3_row_major functions and the trait for 3x3 matrix with row major storage mat3_sym Symmetric 3x3 matrix class
the 3x3 matrix is stored in a 6-dim array
[m[0,0], m[1,1], m[2,2], m[1,2], m[2,0], m[0,1]]
(first diagonal, then off-diagonal) mat3x4_col_major mat4_col_major the trait and methods for 4x4 matrix with column major storage matn_row_major methods for NxN matrix in row major storage obb2 2D Oriented Bounding Box
data structure &[Real;6]
first 2 Reals are for center
next 2 Reals are for half of major axis direction
next 2 Reals are for half of minar axis direction obb3 3D Oriented Bounding Box (OBB) plane methods for 3D plane polynomial_root methods for finding roots of polynomial quaternion methods for quaternion.
A quaternion is stored as [i,j,k,w]
where w is the real part range methods for float range (Real, Real)
sphere Methods for sphere.
The sphere is represented as (radius: Real, center: &[Real;3])
spherical_harmonics tet methods for 3D tetrahedron tri2 methods for 2D triangle tri3 methods for 3d triangle uvec3 methods for unit 3D vector vec2 methods for 2D vector vec3 methods for 3D vector vecn methods for N dimensional vector view_projection Perspective projection looking at -Z direction view_rotation View rotation by trackball UI