Module iron_shapes::edge
source · [−]Expand description
An edge is a line segment from a start-point to a end-point.
Re-exports
pub use crate::traits::BoundingBox;
pub use crate::traits::TryBoundingBox;
pub use crate::traits::RotateOrtho;
pub use crate::traits::TryCastCoord;
pub use crate::types::Angle;
pub use crate::types::Side;
pub use crate::types::ContainsResult;
Structs
An edge (line segment) is represented by its starting point and end point.
Enums
Return type for the edge-edge intersection functions. Stores all possible results of an edge to edge intersection.
Return type for the line-line intersection functions. Stores all possible results of a line to line intersection.
Traits
Get the endpoints of an edge.
Define the intersection between two edges (i.e. line segments).
Iterate over edges. For an n-gon this would produce n edges.