rustsim-geometry 0.0.1

2-D and 3-D geometric primitives and queries for rustsim (points, AABB, segments, rays, triangles, closest-point, raycast)
Documentation
  • Coverage
  • 100%
    92 out of 92 items documented0 out of 64 items with examples
  • Size
  • Source code size: 25.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • federicomarcantognini

Geometric primitives and queries for rustsim.

This crate is intentionally tiny and dependency-free. It provides:

  • [Vec2] and [Vec3] type aliases over [f64; 2] and [f64; 3] with free-function arithmetic in the [vec2] and [vec3] modules.
  • Axis-aligned bounding boxes [Aabb2], [Aabb3].
  • Segments [Segment2], [Segment3] with closest-point queries.
  • Rays [Ray3] and planes [Plane3] with ray-plane intersection.
  • Triangles [Triangle3] with closest-point and ray-triangle intersection (Möller–Trumbore).
  • Spheres [Sphere3] with sphere-vs-AABB / sphere-vs-triangle tests.

All functions are f64. No unsafe. No external crates. No allocation in hot paths.