Trait alga::linear::EuclideanSpace [−][src]
The finite-dimensional affine space based on the field of reals.
Associated Types
type Coordinates: FiniteDimInnerSpace<RealField = Self::RealField, ComplexField = Self::RealField> + Add<Self::Coordinates, Output = Self::Coordinates> + AddAssign<Self::Coordinates> + Sub<Self::Coordinates, Output = Self::Coordinates> + SubAssign<Self::Coordinates> + Mul<Self::RealField, Output = Self::Coordinates> + MulAssign<Self::RealField> + Div<Self::RealField, Output = Self::Coordinates> + DivAssign<Self::RealField> + Neg<Output = Self::Coordinates>
[src]
The underlying finite vector space.
type RealField: RealField
[src]
The underlying reals.
Required methods
fn origin() -> Self
[src]
The preferred origin of this euclidean space.
Theoretically, an euclidean space has no clearly defined origin. Though it is almost always useful to have some reference point to express all the others as translations of it.
Provided methods
fn scale_by(&self, s: Self::RealField) -> Self
[src]
Multiplies the distance of this point to Self::origin()
by s
.
Same as self * s.
fn coordinates(&self) -> Self::Coordinates
[src]
The coordinates of this point, i.e., the translation from the origin.
fn from_coordinates(coords: Self::Coordinates) -> Self
[src]
Builds a point from its coordinates relative to the origin.
fn distance_squared(&self, b: &Self) -> Self::RealField
[src]
The distance between two points.
fn distance(&self, b: &Self) -> Self::RealField
[src]
The distance between two points.