Module vek::geom::repr_c

source ·
Expand description

Basic geometric primitives that use #[repr(C)] vectors.

Structs

  • Axis-aligned Bounding Box (3D), represented by min and max points.
  • Axis-aligned Bounding Rectangle (2D), represented by min and max 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 and end.
  • 3D Line segment, represented by two points, start and end.
  • 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.