Trait ccgeom::Geometry [−][src]
pub trait Geometry<T: Scalar = f64>: Clone + 'static { type Pos: Clone; type Dir: Clone; type Map: Map<Self::Pos, Self::Dir>; fn origin() -> Self::Pos; fn default_dir() -> Self::Dir; fn length(a: Self::Pos) -> T; fn distance(a: Self::Pos, b: Self::Pos) -> T; }
Expand description
N-dimensional geometry.
Associated Types
Required methods
fn default_dir() -> Self::Dir
[src]
fn default_dir() -> Self::Dir
[src]Default direction at the point of origin.
fn length(a: Self::Pos) -> T
[src]
fn distance(a: Self::Pos, b: Self::Pos) -> T
[src]
Implementors
impl<T: Scalar> Geometry<T> for Euclidean3<T>
[src]
impl<T: Scalar> Geometry<T> for Euclidean3<T>
[src]