Trait alga::linear::EuclideanSpace
[−]
[src]
pub trait EuclideanSpace: AffineSpace<Translation=Self::Vector> { type Vector: FiniteDimInnerSpace<Real=Self::Real>; type Real: Real; fn distance_squared(&self, b: &Self) -> Self::Real { ... } fn distance(&self, b: &Self) -> Self::Real { ... } }
A finite-dimensional affine space based on the field of reals.
Associated Types
type Vector: FiniteDimInnerSpace<Real=Self::Real>
The underlying finite vector space.
type Real: Real
The underlying reals.
Provided Methods
fn distance_squared(&self, b: &Self) -> Self::Real
The distance between two points.
fn distance(&self, b: &Self) -> Self::Real
The distance between two points.