Trait HasLength

Source
pub trait HasLength {
    // Required method
    fn length(&self) -> f64;
}
Expand description

HasLength is a trait used for types which have a physical length

Required Methods§

Source

fn length(&self) -> f64

Should return the physical length

Implementors§

Source§

impl HasLength for LineSegment2D

Source§

impl HasLength for LineSegment3D

Source§

impl<P> HasLength for PointCloud2D<P>
where P: Is2D,

Source§

impl<P> HasLength for PointCloud3D<P>
where P: Is3D,

Source§

impl<P> HasLength for Polygon2D<P>
where P: Is2D,

Source§

impl<P> HasLength for Polygon3D<P>
where P: Is3D,