pub trait DoubledOrientedArea<A> {
    // Required method
    fn area_doubled_oriented(&self) -> A;
}
Expand description

Calculate the doubled oriented area of a geometry. Using the doubled area allows to compute the area without using fractions. This is especially helpful when computing in integer coordinates.

  • A: Area type.

Required Methods§

fn area_doubled_oriented(&self) -> A

Calculate doubled oriented area of this geometry. Using the doubled area allows to compute the area without using fractions.

Implementors§

§

impl<A, T> DoubledOrientedArea<A> for SimplePolygon<T>where T: CoordinateType, A: Num + From<T>,

§

impl<T> DoubledOrientedArea<T> for Geometry<T>where T: CoordinateType + NumCast,

§

impl<T> DoubledOrientedArea<T> for Rect<T>where T: Sub<T, Output = T> + Copy + Mul<T, Output = T> + Add<T, Output = T>,

§

impl<T> DoubledOrientedArea<T> for SimpleRPolygon<T>where T: CoordinateType,

§

impl<T, A> DoubledOrientedArea<A> for Polygon<T>where T: CoordinateType, A: Num + From<T>,