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::path::path; | |
pub use self::path::Path; | |
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::tri::Tri; | |
pub use self::vector::vec2; | |
pub use self::vector::vec3; | |
pub use self::vector::vec4; | |
pub use self::vector::Vector2; | |
pub use self::vector::Vector3; | |
pub use self::vector::Vector4; | |
pub use self::vertex::Vertex; | |
pub use self::vertex::Vertex2d; | |
pub use self::vertex::Vertex3d; |
Modules
cuboid | Items related to cube geometry. |
ellipse | |
graph | |
path | Items related to working with paths for 2D geometry and vector graphics. |
point | Implementation of the Point types. |
polygon | |
quad | |
range | A type for working with one-dimensional ranges. |
rect | |
scalar | |
tri | |
vector | Implementation of the Vector types. |
vertex |
Functions
bounding_cuboid | The |
bounding_rect | The |
centroid | The |