Skip to main content

Module prelude

Module prelude 

Source
Expand description

Prelude reexports for the RustUse geometry facade.

Structs§

Aabb2
An axis-aligned bounding box represented by inclusive minimum and maximum corners.
AffinePair
A pair of affine weights for two points.
Angle
An angle stored in radians.
Bar
A bar connecting two joints.
Cell
A cell used by geometric complex crates.
CellComplex
A collection of geometric cells.
Circle
A circle in 2D Euclidean space.
CongruenceTolerance
A non-negative tolerance for congruence-style comparisons.
Conic
A small conic descriptor.
ConvexHull2
A 2D convex hull point set descriptor.
Coordinate2
A raw two-dimensional coordinate pair.
Coordinate3
A raw three-dimensional coordinate triple.
CoxeterDiagram
A Coxeter diagram record.
CoxeterEdge
An edge in a Coxeter diagram.
CoxeterNode
A node in a Coxeter diagram.
Crease
A crease segment in a flat pattern.
Cube
A cube.
CubicBezier2
A cubic Bezier curve in 2D.
Cuboid
A rectangular cuboid.
CurveParameter
A normalized curve parameter in [0, 1].
CurveSample2
A sampled 2D curve point.
DelaunayTriangulation
A Delaunay triangulation represented by indexed triangles.
DihedralAngle
A dihedral angle stored as an Angle.
Dimension
A positive spatial dimension count.
DoubleSix
Two rows of six labels used in double-six configurations.
Dual
A named dual pair.
Duality
Metadata describing a duality relationship.
Edge
A polyhedron edge represented by vertex indices.
Ellipse
An ellipse represented by a center and two positive radii.
Face
A face boundary represented by vertex indices.
FiveCell
Marker for the 5-cell.
FoldState
A fold assignment with an angle.
GeometricComplex
A general geometric complex count summary.
GeometricConfiguration
Basic point-line configuration metadata.
Hyperbola
A hyperbola represented by a center and positive transverse/conjugate radii.
Hyperplane
An n-dimensional hyperplane represented by coefficients.dot(point) + offset = 0.
Hypersphere
An n-sphere represented by its topological dimension and radius.
IncidenceMatrix
A dense incidence matrix.
IncidencePair
A point-line incidence pair.
IncidenceStructure
A sparse incidence structure.
Inversion
A planar geometric inversion represented by center and radius.
JohnsonSolid
A Johnson solid descriptor.
JohnsonSolidId
A Johnson solid identifier from J1 through J92.
JointId
A linkage joint identifier.
Line2
An infinite 2D line represented by two sample points.
Linkage
A linkage summary.
Manifold
A lightweight manifold descriptor.
ManifoldDimension
A non-negative manifold dimension.
Mesh
A lightweight mesh count summary.
MeshFaceIndex
A mesh face index.
MeshVertexIndex
A mesh vertex index.
NetEdge
An adjacency edge in a polyhedral net.
OneHundredTwentyCell
Marker for the 120-cell.
OrigamiModel
A compact origami model summary.
Orthotope
An n-dimensional orthotope represented by positive edge lengths.
Parabola
A parabola descriptor using a vertex and focal parameter.
Plane3
A 3D plane represented by normal.dot(point) + offset = 0.
Point2
A 2D point represented with f64 coordinates.
Polygon
An ordered planar polygon boundary.
PolyhedralNet
A polyhedral net descriptor.
Polyhedron
A polyhedron count summary.
PolyhedronFace
A polyhedron face record represented by vertex indices.
Polyline2
An ordered 2D polyline.
Polytope
A small n-dimensional polytope descriptor.
Projection2
A tiny 2D projection descriptor.
ProjectiveLine
A projective line represented by homogeneous coefficients.
ProjectivePlane
A projective plane descriptor.
ProjectivePoint
A projective point represented by homogeneous coordinates.
QuadraticBezier2
A quadratic Bezier curve in 2D.
Ray2
A half-infinite 2D ray.
Rectangle
An axis-aligned rectangle.
RegularPolygon
A regular polygon descriptor.
RigidFold
A rigid fold around a crease index.
RigidFoldSequence
A sequence of rigid folds.
Rotation
A geometric rotation represented by one angle.
Scale
A geometric scale.
SchlafliDoubleSix
The Schlafli double-six configuration metadata.
SchlafliSymbol
A Schlafli symbol represented by its numeric entries.
Segment2
A finite line segment between two 2D points.
SimilarityRatio
A positive finite scale ratio used for geometric similarity.
Simplex
A general simplex descriptor.
SimplicialComplex
A simplicial complex represented by simplex dimensions.
SixHundredCell
Marker for the 600-cell.
SixteenCell
Marker for the 16-cell.
Sphere
A three-dimensional Euclidean sphere represented by radius.
Spline2
A 2D spline control-point sequence.
SurfacePatch
A rectangular parameter-domain surface patch.
Tessellation
A tessellation summary.
Tesseract
Marker for the tesseract.
Tetrahedron
A 3-simplex in 3D space.
TileId
A tessellation tile identifier.
Torus
A torus represented by major and minor radii.
Transform2
A homogeneous 2D transform matrix.
Transform3
A homogeneous 3D transform matrix.
Translation
A geometric translation.
Triangle
A constructed 2D triangle represented by three vertices.
Triangulation2
A 2D triangulation represented by indexed triangles.
TwentyFourCell
Marker for the 24-cell.
UnfoldingPlan
A sequence of unfolding steps.
UnfoldingStep
A single unfolding step between adjacent faces.
UniformPolytope
A lightweight uniform polytope descriptor.
Vertex
A polyhedron vertex.
VoronoiCell
A Voronoi cell represented by its site index and boundary vertices.
VoronoiDiagram
A Voronoi diagram record.
WythoffSymbol
A lightweight Wythoff construction symbol.

Enums§

ArchimedeanSolid
The thirteen Archimedean solids.
Axis2
Axis labels for two-dimensional coordinates.
Axis3
Axis labels for three-dimensional coordinates.
AxisReflection2
Axis-aligned 2D reflection choices.
BoundaryKind
Boundary metadata for a manifold.
CatalanSolid
The thirteen Catalan solids.
ConicKind
The high-level family of a conic section.
Containment
A simple inside, boundary, or outside classification.
CreaseKind
A crease classification.
FoldAssignment
A fold assignment.
GeometryError
Errors returned by validated geometry constructors and tolerance-aware helpers.
HullAlgorithm
Common convex hull algorithm families.
Intersection2
A minimal two-dimensional intersection result.
Orientation2
The winding order of three 2D points.
PlatonicSolid
The five Platonic solids.
ProjectionKind
Broad projection families.
RegularPolytope
A regular polytope descriptor across common dimensions.
RegularPolytope4
The six convex regular four-dimensional polytopes.
SurfaceKind
Broad surface families.
TessellationKind
Broad tessellation families.
TriangulationMethod
Triangulation method families.
UniformPolytopeKind
Broad uniform polytope families.

Traits§

Contains
A trait for values that can classify containment of T.
Intersects
A trait for values that can report whether they intersect Rhs.

Functions§

aabb_from_points
Creates a bounding box from any two corners.
affine_combination_2d
Returns the affine interpolation between two 2D points.
distance_2d
Returns the Euclidean distance between two 2D points.
distance_squared_2d
Returns the squared Euclidean distance between two 2D points.
midpoint_2d
Returns the midpoint between two 2D points.
orientation_2d
Returns the winding order of three 2D points.
orientation_2d_with_tolerance
Returns the winding order of three 2D points using an explicit area tolerance.
signed_twice_area_2d
Returns twice the signed area of the triangle formed by three 2D points.
slope
Returns the slope between two points, or None for a vertical line.
triangle_area
Returns the 2D triangle area.
triangle_twice_area
Returns twice the unsigned 2D triangle area.
triangle_twice_signed_area
Returns twice the signed 2D triangle area using the shoelace formula.
try_orientation_2d
Returns the winding order of three 2D points with finite coordinates.
try_orientation_2d_with_tolerance
Returns the winding order of three finite 2D points using an explicit area tolerance.
try_slope
Returns the slope between two points when both points contain only finite coordinates.

Type Aliases§

RegularPolytope2
Two-dimensional regular polytopes are regular polygons.
RegularPolytope3
Three-dimensional regular polytopes are the Platonic solids.
ThreeSphere
A 3-sphere, the boundary of a four-dimensional ball.