Module nannou::geom [−][src]
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::graph::Graph; |
pub use self::line::Line; |
pub use self::polygon::Polygon; |
pub use self::polyline::Polyline; |
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::tri::Tri; |
pub use self::vertex::DefaultScalar; |
pub use self::vertex::Vertex; |
pub use self::vertex::Vertex2d; |
pub use self::vertex::Vertex3d; |
Modules
cuboid |
Items related to cube geometry. |
ellipse | |
graph | |
line | |
polygon | |
polyline |
Tools for working with polylines using varying kinds of line joins and caps. |
quad | |
range |
A type for working with one-dimensional ranges. |
rect | |
tri | |
vertex |
Functions
bounding_cuboid |
The |
bounding_rect |
The |
centroid |
The |