Module oxygengine_ha_renderer::math::geom
source · Expand description
Common and trivial geometric primitives.
Modules
- Basic geometric primitives that use
#[repr(C)]vectors. - Basic geometric primitives that use
#[repr(simd)]vectors.
Structs
- Axis-aligned Bounding Box (3D), represented by
minandmaxpoints. - Axis-aligned Bounding Rectangle (2D), represented by
minandmaxpoints. - Disk (2D), represented by center and radius.
- Ellipsis (2D), represented by center and radius in both axii.
- Data that represents distance offsets of frustum planes from an origin.
- 2D Line segment, represented by two points,
startandend. - 3D Line segment, represented by two points,
startandend. - Nobody can possibly use this ???
- 3D ray, represented by a starting point and a normalized direction vector.
- 2D rectangle, represented by a bottom-left position, and 2D extents.
- A
Rectextended to 3D. - Sphere (3D), represented by center and radius.