[][src]Module flo_curves::geo

Traits for basic geometric definitions

This provides some basic geometric definitions. The Geo trait can be implemented by any type that has a particular type of coordinate - for example, implementations of BezierCurve need to implement Geo in order to describe what type they use for coordinates.

BoundingBox provides a way to describe axis-aligned bounding boxes. It too is a trait, making it possible to request bounding boxes in types other than the default Bounds type supplied by the library.

Structs

Bounds

Type representing a bounding box

Coord2

Represents a 2D point

Traits

BoundingBox

Trait implemented by things representing axis-aligned bounding boxes

Coordinate

Represents a value that can be used as a coordinate in a bezier curve

Coordinate2D

Represents a coordinate with a 2D position

Coordinate3D

Represents a coordinate with a 3D position

Geo

Simple base trait implemented by things representing geometry