axiolid_linear/lib.rs
1#![forbid(unsafe_code)]
2
3//! Format-neutral linear geometry values.
4//!
5//! This package exists so that a line-query application can compile lines,
6//! rays, segments, and polylines without acquiring the general curve
7//! aggregate, surfaces, meshes, topology, or any execution machinery. It holds
8//! data only: no evaluation policy, no tolerance decisions, no algorithms.
9//!
10//! `axiolid-curve` re-exports these types, so `axiolid_curve::Line2` and
11//! `axiolid_linear::Line2` name the same value.
12
13mod bounded;
14mod line;
15mod polyline;
16
17/// Coordinate vocabulary, re-exported from `axiolid-core`.
18///
19/// These are the same types, not copies: a consumer of the narrow linear
20/// closure should not need a second dependency to name a point.
21pub use axiolid_core::{Point2, Point3, Scalar, Tolerance, Vec2, Vec3};
22pub use bounded::{Ray2, Ray3, Segment, Segment2, Segment3};
23pub use line::{Line, Line2, Line3};
24pub use polyline::{Polyline, Polyline2, Polyline3};