Expand description
Prelude reexports for the RustUse geometry facade.
Structs§
- Aabb2
- An axis-aligned bounding box represented by inclusive minimum and maximum corners.
- Affine
Pair - 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.
- Cell
Complex - A collection of geometric cells.
- Circle
- A circle in 2D Euclidean space.
- Congruence
Tolerance - A non-negative tolerance for congruence-style comparisons.
- Conic
- A small conic descriptor.
- Convex
Hull2 - A 2D convex hull point set descriptor.
- Coordinate2
- A raw two-dimensional coordinate pair.
- Coordinate3
- A raw three-dimensional coordinate triple.
- Coxeter
Diagram - A Coxeter diagram record.
- Coxeter
Edge - An edge in a Coxeter diagram.
- Coxeter
Node - A node in a Coxeter diagram.
- Crease
- A crease segment in a flat pattern.
- Cube
- A cube.
- Cubic
Bezier2 - A cubic Bezier curve in 2D.
- Cuboid
- A rectangular cuboid.
- Curve
Parameter - A normalized curve parameter in
[0, 1]. - Curve
Sample2 - A sampled 2D curve point.
- Delaunay
Triangulation - A Delaunay triangulation represented by indexed triangles.
- Dihedral
Angle - A dihedral angle stored as an
Angle. - Dimension
- A positive spatial dimension count.
- Double
Six - 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.
- Five
Cell - Marker for the 5-cell.
- Fold
State - A fold assignment with an angle.
- Geometric
Complex - A general geometric complex count summary.
- Geometric
Configuration - 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.
- Incidence
Matrix - A dense incidence matrix.
- Incidence
Pair - A point-line incidence pair.
- Incidence
Structure - A sparse incidence structure.
- Inversion
- A planar geometric inversion represented by center and radius.
- Johnson
Solid - A Johnson solid descriptor.
- Johnson
Solid Id - A Johnson solid identifier from
J1throughJ92. - JointId
- A linkage joint identifier.
- Line2
- An infinite 2D line represented by two sample points.
- Linkage
- A linkage summary.
- Manifold
- A lightweight manifold descriptor.
- Manifold
Dimension - A non-negative manifold dimension.
- Mesh
- A lightweight mesh count summary.
- Mesh
Face Index - A mesh face index.
- Mesh
Vertex Index - A mesh vertex index.
- NetEdge
- An adjacency edge in a polyhedral net.
- OneHundred
Twenty Cell - Marker for the 120-cell.
- Origami
Model - 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
f64coordinates. - Polygon
- An ordered planar polygon boundary.
- Polyhedral
Net - A polyhedral net descriptor.
- Polyhedron
- A polyhedron count summary.
- Polyhedron
Face - 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.
- Projective
Line - A projective line represented by homogeneous coefficients.
- Projective
Plane - A projective plane descriptor.
- Projective
Point - A projective point represented by homogeneous coordinates.
- Quadratic
Bezier2 - A quadratic Bezier curve in 2D.
- Ray2
- A half-infinite 2D ray.
- Rectangle
- An axis-aligned rectangle.
- Regular
Polygon - A regular polygon descriptor.
- Rigid
Fold - A rigid fold around a crease index.
- Rigid
Fold Sequence - A sequence of rigid folds.
- Rotation
- A geometric rotation represented by one angle.
- Scale
- A geometric scale.
- Schlafli
Double Six - The Schlafli double-six configuration metadata.
- Schlafli
Symbol - A Schlafli symbol represented by its numeric entries.
- Segment2
- A finite line segment between two 2D points.
- Similarity
Ratio - A positive finite scale ratio used for geometric similarity.
- Simplex
- A general simplex descriptor.
- Simplicial
Complex - A simplicial complex represented by simplex dimensions.
- SixHundred
Cell - Marker for the 600-cell.
- Sixteen
Cell - Marker for the 16-cell.
- Sphere
- A three-dimensional Euclidean sphere represented by radius.
- Spline2
- A 2D spline control-point sequence.
- Surface
Patch - 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.
- Twenty
Four Cell - Marker for the 24-cell.
- Unfolding
Plan - A sequence of unfolding steps.
- Unfolding
Step - A single unfolding step between adjacent faces.
- Uniform
Polytope - A lightweight uniform polytope descriptor.
- Vertex
- A polyhedron vertex.
- Voronoi
Cell - A Voronoi cell represented by its site index and boundary vertices.
- Voronoi
Diagram - A Voronoi diagram record.
- Wythoff
Symbol - A lightweight Wythoff construction symbol.
Enums§
- Archimedean
Solid - The thirteen Archimedean solids.
- Axis2
- Axis labels for two-dimensional coordinates.
- Axis3
- Axis labels for three-dimensional coordinates.
- Axis
Reflection2 - Axis-aligned 2D reflection choices.
- Boundary
Kind - Boundary metadata for a manifold.
- Catalan
Solid - The thirteen Catalan solids.
- Conic
Kind - The high-level family of a conic section.
- Containment
- A simple inside, boundary, or outside classification.
- Crease
Kind - A crease classification.
- Fold
Assignment - A fold assignment.
- Geometry
Error - Errors returned by validated geometry constructors and tolerance-aware helpers.
- Hull
Algorithm - Common convex hull algorithm families.
- Intersection2
- A minimal two-dimensional intersection result.
- Orientation2
- The winding order of three 2D points.
- Platonic
Solid - The five Platonic solids.
- Projection
Kind - Broad projection families.
- Regular
Polytope - A regular polytope descriptor across common dimensions.
- Regular
Polytope4 - The six convex regular four-dimensional polytopes.
- Surface
Kind - Broad surface families.
- Tessellation
Kind - Broad tessellation families.
- Triangulation
Method - Triangulation method families.
- Uniform
Polytope Kind - 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
Nonefor 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§
- Regular
Polytope2 - Two-dimensional regular polytopes are regular polygons.
- Regular
Polytope3 - Three-dimensional regular polytopes are the Platonic solids.
- Three
Sphere - A 3-sphere, the boundary of a four-dimensional ball.