Module nannou_core::geom
source · Expand description
Types, functions and other items related to geometry. This module is the source of all graphics and lazer primitives and aids work in 2D and 3D space.
Each module provides a set of general tools for working with the named geometry including:
- A typed, object representation.
- Functions for producing vertices, triangles and triangulation indices.
- Functions for checking whether or not the geometry contains a point.
- Functions for determining the bounding rectangle or cuboid.
- A function for finding the centroid.
Re-exports
pub use self::cuboid::Cuboid;
pub use self::ellipse::Ellipse;
pub use self::point::pt2;
pub use self::point::pt3;
pub use self::point::pt4;
pub use self::point::Point2;
pub use self::point::Point3;
pub use self::point::Point4;
pub use self::polygon::Polygon;
pub use self::quad::Quad;
pub use self::range::Align;
pub use self::range::Edge;
pub use self::range::Range;
pub use self::rect::Corner;
pub use self::rect::Padding;
pub use self::rect::Rect;
pub use self::scalar::Scalar;
pub use self::tri::Tri;
pub use self::vector::Vector2;
Deprecatedpub use self::vector::Vector3;
Deprecatedpub use self::vector::Vector4;
Deprecatedpub use self::vertex::Vertex;
pub use self::vertex::Vertex2d;
pub use self::vertex::Vertex3d;
Modules
- Items related to cube geometry.
- Implementation of the Point types.
- A type for working with one-dimensional ranges.
Structs
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- A 2-dimensional vector.
- A 3-dimensional vector without SIMD support.
- A 4-dimensional vector.
Functions
- The
Cuboid
that bounds the given sequence of vertices. - The
Rect
that bounds the given sequence of vertices. - The
centroid
(average position) of all vertices in the given iterator. - Creates a 2-dimensional vector.
- Creates a 3-dimensional vector.
- Creates a 4-dimensional vector.
- Creates a 2-dimensional vector.
- Creates a 3-dimensional vector.
- Creates a 4-dimensional vector.
- Creates a 2-dimensional vector.
- Creates a 3-dimensional vector.
- Creates a 4-dimensional vector.