Expand description
Shared foundational traits used across all geometry dimensions. Shared foundational traits used by all geometry primitives.
Structs§
- FaceId
- Stable identifier for entries in the root polygon-face table.
- LineId
- Stable identifier for entries in the root line table.
- PointId
- Stable identifier for entries in the root point table.
- Tetrahedron
Id - Stable identifier for entries in the root tetrahedron table.
- Triangle
Id - Stable identifier for entries in the root triangle table.
Traits§
- Approx
Eq - Provides approximate equality comparisons with a caller-supplied epsilon.
- CanNormalize
- Normalizes a primitive in place.
- CanProject
- Projects a primitive onto another target type.
- CanScale
- Uniformly scales a primitive in place.
- CanScale
NonUniform - Applies non-uniform scaling using a separate scale vector.
- Canonicalize
- Reorders or normalizes an in-memory representation in place.
- Contains
- Tests whether a primitive contains another value.
- Coordinate
Primitive - A coordinate-bearing primitive that supports indexed scalar access.
- Cross
Product - Computes a cross product between two values.
- DotProduct
- Computes a dot product between two values.
- Geometric
Primitive - Base trait implemented by all geometry primitives in this module tree.
- Geometric
Primitive2D - Marker trait for primitives that live in a 2D space.
- Geometric
Primitive3D - Marker trait for primitives that live in a 3D space.
- Geometric
Primitive4D - Marker trait for primitives that live in a 4D space.
- HasBounding
Box - Provides access to a primitive’s bounding box.
- HasCenter
- Exposes a geometric center point.
- HasCentroid
- Exposes a centroid point for the primitive.
- HasDimension
- Exposes the dimensionality of a primitive as a compile-time constant.
- HasDistance
To - Computes a distance from
selfto another value. - HasEdges
- Provides indexed access to a shape’s derived geometric edges.
- HasEpsilon
- Supplies a default epsilon for approximate comparisons.
- HasFaces
- Provides access to a borrowed polygon-face table.
- HasLines
- Provides access to a borrowed line table.
- HasMeasure
- Provides a canonical scalar measure for a primitive.
- HasNorm
- Computes the norm or magnitude of a value.
- HasTetrahedra
- Provides access to a borrowed tetrahedron table.
- HasTriangles
- Provides access to a borrowed triangle table.
- HasVertices
- Provides access to a borrowed point table.
- Intersects
- Tests whether two values intersect.
- IsGeometry
Key - Base trait for stable geometry table keys.
- IsGeometry
Table - Abstraction over a keyed mutable collection of geometry primitives.
- IsGeometry
Table Base - Root registry that owns or exposes the current core geometry tables.
- IsPlane
- A plane-like primitive represented by a point and a unit normal.
- IsUnit
Vector - Marker trait for vectors guaranteed to have unit magnitude.
- IsValid
- Indicates whether a primitive satisfies its invariants.
- Maybe
Serialize serde::Serializewhen theserdefeature is enabled, and no requirement otherwise. Used in trait bounds so that geometry types are serializable exactly when serialization is available.- Normalize
- Produces a normalized copy without mutating the original value.
- Repair
- Attempts to repair an invalid or non-canonical primitive in place.
- Scalar
Operable - Supports scalar arithmetic against the geometry measurement type.
- Self
Addition - Supports primitive-to-primitive addition and subtraction.
- Self
Product Inner - Supports an inner-product-like multiplication producing a scalar measure.
Type Aliases§
- Geometry
Measure - Canonical scalar type used for geometric measurements.