Expand description
Basic geometric primitives that use #[repr(C)]
vectors.
Structs
- Axis-aligned Bounding Box (3D), represented by
min
andmax
points. - Axis-aligned Bounding Rectangle (2D), represented by
min
andmax
points. - Disk (2D), represented by center and radius.
- Ellipsis (2D), represented by center and radius in both axii.
- 2D Line segment, represented by two points,
start
andend
. - 3D Line segment, represented by two points,
start
andend
. - 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
Rect
extended to 3D. - Sphere (3D), represented by center and radius.