Struct nalgebra::geometry::Point[][src]

#[repr(C)]
pub struct Point<N: Scalar, D: DimName> where
    DefaultAllocator: Allocator<N, D>, 
{ pub coords: VectorN<N, D>, }

A point in a n-dimensional euclidean space.

Fields

The coordinates of this point, i.e., the shift from the origin.

Methods

impl<N: Scalar, D: DimName> Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Clones this point into one that owns its data.

Converts this point into a vector in homogeneous coordinates, i.e., appends a 1 at the end of it.

Creates a new point with the given coordinates.

The dimension of this point.

The stride of this point. This is the number of buffer element separating each component of this point.

Important traits for MatrixIter<'a, N, R, C, S>

Iterates through this point coordinates.

Important traits for &'a mut R

Gets a reference to i-th element of this point without bound-checking.

Important traits for MatrixIterMut<'a, N, R, C, S>

Mutably iterates through this point coordinates.

Important traits for &'a mut R

Gets a mutable reference to i-th element of this point without bound-checking.

Swaps two entries without bound-checking.

impl<N: Scalar, D: DimName> Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Creates a new point with uninitialized coordinates.

Creates a new point with all coordinates equal to zero.

Creates a new point from its homogeneous vector representation.

In practice, this builds a D-dimensional points with the same first D component as v divided by the last component of v. Returns None if this divisor is zero.

impl<N: Scalar> Point<N, U1> where
    DefaultAllocator: Allocator<N, U1>, 
[src]

Initializes this matrix from its components.

impl<N: Scalar> Point<N, U2> where
    DefaultAllocator: Allocator<N, U2>, 
[src]

Initializes this matrix from its components.

impl<N: Scalar> Point<N, U3> where
    DefaultAllocator: Allocator<N, U3>, 
[src]

Initializes this matrix from its components.

impl<N: Scalar> Point<N, U4> where
    DefaultAllocator: Allocator<N, U4>, 
[src]

Initializes this matrix from its components.

impl<N: Scalar> Point<N, U5> where
    DefaultAllocator: Allocator<N, U5>, 
[src]

Initializes this matrix from its components.

impl<N: Scalar> Point<N, U6> where
    DefaultAllocator: Allocator<N, U6>, 
[src]

Initializes this matrix from its components.

Trait Implementations

impl<N: Real, D: DimNameSub<U1>> Transformation<Point<N, DimNameDiff<D, U1>>> for MatrixN<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, DimNameDiff<D, U1>> + Allocator<N, DimNameDiff<D, U1>, DimNameDiff<D, U1>>, 
[src]

Applies this group's action on a vector from the euclidean space. Read more

Applies this group's action on a point from the euclidean space.

impl<N: Debug + Scalar, D: Debug + DimName> Debug for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Formats the value using the given formatter. Read more

impl<N: Scalar + Hash, D: DimName + Hash> Hash for Point<N, D> where
    DefaultAllocator: Allocator<N, D>,
    <DefaultAllocator as Allocator<N, D>>::Buffer: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<N: Scalar, D: DimName> Copy for Point<N, D> where
    DefaultAllocator: Allocator<N, D>,
    <DefaultAllocator as Allocator<N, D>>::Buffer: Copy
[src]

impl<N: Scalar, D: DimName> Clone for Point<N, D> where
    DefaultAllocator: Allocator<N, D>,
    <DefaultAllocator as Allocator<N, D>>::Buffer: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Scalar + AbsDiffEq, D: DimName> AbsDiffEq for Point<N, D> where
    DefaultAllocator: Allocator<N, D>,
    N::Epsilon: Copy
[src]

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more

The inverse of ApproxEq::abs_diff_eq.

impl<N: Scalar + RelativeEq, D: DimName> RelativeEq for Point<N, D> where
    DefaultAllocator: Allocator<N, D>,
    N::Epsilon: Copy
[src]

The default relative tolerance for testing values that are far-apart. Read more

A test for equality that uses a relative comparison if the values are far apart.

The inverse of ApproxEq::relative_eq.

impl<N: Scalar + UlpsEq, D: DimName> UlpsEq for Point<N, D> where
    DefaultAllocator: Allocator<N, D>,
    N::Epsilon: Copy
[src]

The default ULPs to tolerate when testing values that are far-apart. Read more

A test for equality that uses units in the last place (ULP) if the values are far apart.

The inverse of ApproxEq::ulps_eq.

impl<N: Scalar + Eq, D: DimName> Eq for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

impl<N: Scalar, D: DimName> PartialEq for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N: Scalar + PartialOrd, D: DimName> PartialOrd for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<N: Scalar + Display, D: DimName> Display for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Formats the value using the given formatter. Read more

impl<N: Scalar + Bounded, D: DimName> Bounded for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

returns the largest finite number this type can represent

returns the smallest finite number this type can represent

impl<N: Scalar, D: DimName> Distribution<Point<N, D>> for Standard where
    DefaultAllocator: Allocator<N, D>,
    Standard: Distribution<N>, 
[src]

Generate a random value of T, using rng as the source of randomness.

Important traits for DistIter<'a, D, R, T>

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

impl<N: Scalar> From<[N; 1]> for Point<N, U1>
[src]

Performs the conversion.

impl<N: Scalar> From<[N; 2]> for Point<N, U2>
[src]

Performs the conversion.

impl<N: Scalar> From<[N; 3]> for Point<N, U3>
[src]

Performs the conversion.

impl<N: Scalar> From<[N; 4]> for Point<N, U4>
[src]

Performs the conversion.

impl<N: Scalar> From<[N; 5]> for Point<N, U5>
[src]

Performs the conversion.

impl<N: Scalar> From<[N; 6]> for Point<N, U6>
[src]

Performs the conversion.

impl<N: Scalar, D: DimName> Index<usize> for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<N: Scalar, D: DimName> IndexMut<usize> for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Performs the mutable indexing (container[index]) operation.

impl<N: Scalar + ClosedNeg, D: DimName> Neg for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl<'a, N: Scalar + ClosedNeg, D: DimName> Neg for &'a Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl<'a, 'b, N, D: DimName> Sub<&'b Point<N, D>> for &'a Point<N, D> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, N, D: DimName> Sub<Point<N, D>> for &'a Point<N, D> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'b, N, D: DimName> Sub<&'b Point<N, D>> for Point<N, D> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<N, D: DimName> Sub<Point<N, D>> for Point<N, D> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, 'b, N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Sub<&'b Vector<N, D2, SB>> for &'a Point<N, D1> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Sub<Vector<N, D2, SB>> for &'a Point<N, D1> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'b, N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Sub<&'b Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Sub<Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedSub,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, 'b, N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Add<&'b Vector<N, D2, SB>> for &'a Point<N, D1> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Add<Vector<N, D2, SB>> for &'a Point<N, D1> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'b, N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Add<&'b Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<N, D1: DimName, D2: Dim, SB: Storage<N, D2>> Add<Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D1, U1> + Allocator<N, D2, U1> + SameShapeAllocator<N, D1, U1, D2, U1>,
    ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'b, N, D1: DimName, D2: Dim, SB> AddAssign<&'b Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedAdd,
    SB: Storage<N, D2>,
    DefaultAllocator: Allocator<N, D1>,
    ShapeConstraint: SameNumberOfRows<D1, D2>, 
[src]

Performs the += operation.

impl<N, D1: DimName, D2: Dim, SB> AddAssign<Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedAdd,
    SB: Storage<N, D2>,
    DefaultAllocator: Allocator<N, D1>,
    ShapeConstraint: SameNumberOfRows<D1, D2>, 
[src]

Performs the += operation.

impl<'b, N, D1: DimName, D2: Dim, SB> SubAssign<&'b Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedSub,
    SB: Storage<N, D2>,
    DefaultAllocator: Allocator<N, D1>,
    ShapeConstraint: SameNumberOfRows<D1, D2>, 
[src]

Performs the -= operation.

impl<N, D1: DimName, D2: Dim, SB> SubAssign<Vector<N, D2, SB>> for Point<N, D1> where
    N: Scalar + ClosedSub,
    SB: Storage<N, D2>,
    DefaultAllocator: Allocator<N, D1>,
    ShapeConstraint: SameNumberOfRows<D1, D2>, 
[src]

Performs the -= operation.

impl<N, R1: DimName, C1: Dim, D2: DimName, SA: Storage<N, R1, C1>> Mul<Point<N, D2>> for Matrix<N, R1, C1, SA> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, R1, C1> + Allocator<N, D2, U1> + Allocator<N, R1, U1>,
    ShapeConstraint: AreMultipliable<R1, C1, D2, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, N, R1: DimName, C1: Dim, D2: DimName, SA: Storage<N, R1, C1>> Mul<Point<N, D2>> for &'a Matrix<N, R1, C1, SA> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, R1, C1> + Allocator<N, D2, U1> + Allocator<N, R1, U1>,
    ShapeConstraint: AreMultipliable<R1, C1, D2, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, N, R1: DimName, C1: Dim, D2: DimName, SA: Storage<N, R1, C1>> Mul<&'b Point<N, D2>> for Matrix<N, R1, C1, SA> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, R1, C1> + Allocator<N, D2, U1> + Allocator<N, R1, U1>,
    ShapeConstraint: AreMultipliable<R1, C1, D2, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, N, R1: DimName, C1: Dim, D2: DimName, SA: Storage<N, R1, C1>> Mul<&'b Point<N, D2>> for &'a Matrix<N, R1, C1, SA> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, R1, C1> + Allocator<N, D2, U1> + Allocator<N, R1, U1>,
    ShapeConstraint: AreMultipliable<R1, C1, D2, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Scalar + ClosedMul, D: DimName> Mul<N> for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, N: Scalar + ClosedMul, D: DimName> Mul<N> for &'a Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Scalar + ClosedMul, D: DimName> MulAssign<N> for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Performs the *= operation.

impl<N: Scalar + ClosedDiv, D: DimName> Div<N> for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, N: Scalar + ClosedDiv, D: DimName> Div<N> for &'a Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<N: Scalar + ClosedDiv, D: DimName> DivAssign<N> for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Performs the /= operation.

impl<D: DimName> Mul<Point<u8, D>> for u8 where
    DefaultAllocator: Allocator<u8, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<u8, D>> for u8 where
    DefaultAllocator: Allocator<u8, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<u16, D>> for u16 where
    DefaultAllocator: Allocator<u16, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<u16, D>> for u16 where
    DefaultAllocator: Allocator<u16, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<u32, D>> for u32 where
    DefaultAllocator: Allocator<u32, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<u32, D>> for u32 where
    DefaultAllocator: Allocator<u32, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<u64, D>> for u64 where
    DefaultAllocator: Allocator<u64, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<u64, D>> for u64 where
    DefaultAllocator: Allocator<u64, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<usize, D>> for usize where
    DefaultAllocator: Allocator<usize, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<usize, D>> for usize where
    DefaultAllocator: Allocator<usize, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<i8, D>> for i8 where
    DefaultAllocator: Allocator<i8, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<i8, D>> for i8 where
    DefaultAllocator: Allocator<i8, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<i16, D>> for i16 where
    DefaultAllocator: Allocator<i16, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<i16, D>> for i16 where
    DefaultAllocator: Allocator<i16, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<i32, D>> for i32 where
    DefaultAllocator: Allocator<i32, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<i32, D>> for i32 where
    DefaultAllocator: Allocator<i32, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<i64, D>> for i64 where
    DefaultAllocator: Allocator<i64, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<i64, D>> for i64 where
    DefaultAllocator: Allocator<i64, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<isize, D>> for isize where
    DefaultAllocator: Allocator<isize, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<isize, D>> for isize where
    DefaultAllocator: Allocator<isize, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<f32, D>> for f32 where
    DefaultAllocator: Allocator<f32, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<f32, D>> for f32 where
    DefaultAllocator: Allocator<f32, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<D: DimName> Mul<Point<f64, D>> for f64 where
    DefaultAllocator: Allocator<f64, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, D: DimName> Mul<&'b Point<f64, D>> for f64 where
    DefaultAllocator: Allocator<f64, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Scalar + Field, D: DimName> AffineSpace for Point<N, D> where
    N: Scalar + Field,
    DefaultAllocator: Allocator<N, D>, 
[src]

The associated vector space.

Same as *self + *t. Applies the additive group action of this affine space's associated vector space on self. Read more

Same as *self - *other. Returns the unique element v of the associated vector space such that self = right + v. Read more

impl<N: Real, D: DimName> EuclideanSpace for Point<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The underlying finite vector space.

The underlying reals.

The preferred origin of this euclidean space. Read more

The coordinates of this point, i.e., the translation from the origin.

Builds a point from its coordinates relative to the origin.

Multiplies the distance of this point to Self::origin() by s. Read more

The distance between two points.

The distance between two points.

impl<N, D: DimName> MeetSemilattice for Point<N, D> where
    N: Scalar + MeetSemilattice,
    DefaultAllocator: Allocator<N, D>, 
[src]

Returns the meet (aka. infimum) of two values.

impl<N, D: DimName> JoinSemilattice for Point<N, D> where
    N: Scalar + JoinSemilattice,
    DefaultAllocator: Allocator<N, D>, 
[src]

Returns the join (aka. supremum) of two values.

impl<N, D: DimName> Lattice for Point<N, D> where
    N: Scalar + Lattice,
    DefaultAllocator: Allocator<N, D>, 
[src]

Returns the infimum and the supremum simultaneously.

Return the minimum of self and other if they are comparable.

Return the maximum of self and other if they are comparable.

Sorts two values in increasing order using a partial ordering.

Clamp value between min and max. Returns None if value is not comparable to min or max. Read more

impl<N1, N2, D> SubsetOf<Point<N2, D>> for Point<N1, D> where
    D: DimName,
    N1: Scalar,
    N2: Scalar + SupersetOf<N1>,
    DefaultAllocator: Allocator<N2, D> + Allocator<N1, D>, 
[src]

The inclusion map: converts self to the equivalent element of its superset.

Checks if element is actually part of the subset Self (and can be converted to it).

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<N1, N2, D> SubsetOf<VectorN<N2, DimNameSum<D, U1>>> for Point<N1, D> where
    D: DimNameAdd<U1>,
    N1: Scalar,
    N2: Scalar + Zero + One + ClosedDiv + SupersetOf<N1>,
    DefaultAllocator: Allocator<N1, D> + Allocator<N1, DimNameSum<D, U1>> + Allocator<N2, DimNameSum<D, U1>> + Allocator<N2, D>, 
[src]

The inclusion map: converts self to the equivalent element of its superset.

Checks if element is actually part of the subset Self (and can be converted to it).

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<N: Scalar> Deref for Point<N, U1> where
    DefaultAllocator: Allocator<N, U1>, 
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<N: Scalar> DerefMut for Point<N, U1> where
    DefaultAllocator: Allocator<N, U1>, 
[src]

Mutably dereferences the value.

impl<N: Scalar> Deref for Point<N, U2> where
    DefaultAllocator: Allocator<N, U2>, 
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<N: Scalar> DerefMut for Point<N, U2> where
    DefaultAllocator: Allocator<N, U2>, 
[src]

Mutably dereferences the value.

impl<N: Scalar> Deref for Point<N, U3> where
    DefaultAllocator: Allocator<N, U3>, 
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<N: Scalar> DerefMut for Point<N, U3> where
    DefaultAllocator: Allocator<N, U3>, 
[src]

Mutably dereferences the value.

impl<N: Scalar> Deref for Point<N, U4> where
    DefaultAllocator: Allocator<N, U4>, 
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<N: Scalar> DerefMut for Point<N, U4> where
    DefaultAllocator: Allocator<N, U4>, 
[src]

Mutably dereferences the value.

impl<N: Scalar> Deref for Point<N, U5> where
    DefaultAllocator: Allocator<N, U5>, 
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<N: Scalar> DerefMut for Point<N, U5> where
    DefaultAllocator: Allocator<N, U5>, 
[src]

Mutably dereferences the value.

impl<N: Scalar> Deref for Point<N, U6> where
    DefaultAllocator: Allocator<N, U6>, 
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<N: Scalar> DerefMut for Point<N, U6> where
    DefaultAllocator: Allocator<N, U6>, 
[src]

Mutably dereferences the value.

impl<N, D: DimName> Mul<Point<N, D>> for Rotation<N, D> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1> + Allocator<N, D, U1>,
    DefaultAllocator: Allocator<N, D>,
    ShapeConstraint: AreMultipliable<D, D, D, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, N, D: DimName> Mul<Point<N, D>> for &'a Rotation<N, D> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1> + Allocator<N, D, U1>,
    DefaultAllocator: Allocator<N, D>,
    ShapeConstraint: AreMultipliable<D, D, D, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, N, D: DimName> Mul<&'b Point<N, D>> for Rotation<N, D> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1> + Allocator<N, D, U1>,
    DefaultAllocator: Allocator<N, D>,
    ShapeConstraint: AreMultipliable<D, D, D, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, N, D: DimName> Mul<&'b Point<N, D>> for &'a Rotation<N, D> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul,
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1> + Allocator<N, D, U1>,
    DefaultAllocator: Allocator<N, D>,
    ShapeConstraint: AreMultipliable<D, D, D, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Real, D: DimName> Transformation<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

Applies this group's action on a point from the euclidean space.

Applies this group's action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName> ProjectiveTransformation<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

Applies this group's inverse action on a point from the euclidean space.

Applies this group's inverse action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName> AffineTransformation<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

Type of the first rotation to be applied.

Type of the non-uniform scaling to be applied.

The type of the pure translation part of this affine transformation.

Decomposes this affine transformation into a rotation followed by a non-uniform scaling, followed by a rotation, followed by a translation. Read more

Appends a translation to this similarity.

Prepends a translation to this similarity.

Appends a rotation to this similarity.

Prepends a rotation to this similarity.

Appends a scaling factor to this similarity.

Prepends a scaling factor to this similarity.

Appends to this similarity a rotation centered at the point p, i.e., this point is left invariant. Read more

impl<N: Real, D: DimName> Similarity<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

The type of the pure (uniform) scaling part of this similarity transformation.

The pure translational component of this similarity transformation.

The pure rotational component of this similarity transformation.

The pure scaling component of this similarity transformation.

Applies this transformation's pure translational part to a point.

Applies this transformation's pure rotational part to a point.

Applies this transformation's pure scaling part to a point.

Applies this transformation's pure rotational part to a vector.

Applies this transformation's pure scaling part to a vector.

Applies this transformation inverse's pure translational part to a point.

Applies this transformation inverse's pure rotational part to a point.

Applies this transformation inverse's pure scaling part to a point.

Applies this transformation inverse's pure rotational part to a vector.

Applies this transformation inverse's pure scaling part to a vector.

impl<N: Real, D: DimName> Isometry<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

impl<N: Real, D: DimName> DirectIsometry<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

impl<N: Real, D: DimName> OrthogonalTransformation<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

impl<N: Real, D: DimName> Rotation<Point<N, D>> for Rotation<N, D> where
    DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>, 
[src]

Subgroups of the n-dimensional rotation group SO(n).

Raises this rotation to a power. If this is a simple rotation, the result must be equivalent to multiplying the rotation angle by n. Read more

Computes a simple rotation that makes the angle between a and b equal to zero, i.e., b.angle(a * delta_rotation(a, b)) = 0. If a and b are collinear, the computed rotation may not be unique. Returns None if no such simple rotation exists in the subgroup represented by Self. Read more

Computes the rotation between a and b and raises it to the power n. Read more

impl<'a, 'b, N, D: DimName> Mul<&'b Point<N, D>> for &'a Translation<N, D> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, N, D: DimName> Mul<Point<N, D>> for &'a Translation<N, D> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, N, D: DimName> Mul<&'b Point<N, D>> for Translation<N, D> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N, D: DimName> Mul<Point<N, D>> for Translation<N, D> where
    N: Scalar + ClosedAdd,
    DefaultAllocator: Allocator<N, D, U1> + Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
    ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Real, D: DimName> Transformation<Point<N, D>> for Translation<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Applies this group's action on a point from the euclidean space.

Applies this group's action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName> ProjectiveTransformation<Point<N, D>> for Translation<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Applies this group's inverse action on a point from the euclidean space.

Applies this group's inverse action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName> AffineTransformation<Point<N, D>> for Translation<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Type of the first rotation to be applied.

Type of the non-uniform scaling to be applied.

The type of the pure translation part of this affine transformation.

Decomposes this affine transformation into a rotation followed by a non-uniform scaling, followed by a rotation, followed by a translation. Read more

Appends a translation to this similarity.

Prepends a translation to this similarity.

Appends a rotation to this similarity.

Prepends a rotation to this similarity.

Appends a scaling factor to this similarity.

Prepends a scaling factor to this similarity.

Appends to this similarity a rotation centered at the point p, i.e., this point is left invariant. Read more

impl<N: Real, D: DimName> Similarity<Point<N, D>> for Translation<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

The type of the pure (uniform) scaling part of this similarity transformation.

The pure translational component of this similarity transformation.

The pure rotational component of this similarity transformation.

The pure scaling component of this similarity transformation.

Applies this transformation's pure translational part to a point.

Applies this transformation's pure rotational part to a point.

Applies this transformation's pure scaling part to a point.

Applies this transformation's pure rotational part to a vector.

Applies this transformation's pure scaling part to a vector.

Applies this transformation inverse's pure translational part to a point.

Applies this transformation inverse's pure rotational part to a point.

Applies this transformation inverse's pure scaling part to a point.

Applies this transformation inverse's pure rotational part to a vector.

Applies this transformation inverse's pure scaling part to a vector.

impl<N: Real, D: DimName> Isometry<Point<N, D>> for Translation<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

impl<N: Real, D: DimName> DirectIsometry<Point<N, D>> for Translation<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

impl<N: Real, D: DimName> AlgaTranslation<Point<N, D>> for Translation<N, D> where
    DefaultAllocator: Allocator<N, D>, 
[src]

Subgroups of the n-dimensional translation group T(n).

Converts this translation to a vector.

Attempts to convert a vector to this translation. Returns None if the translation represented by v is not part of the translation subgroup represented by Self. Read more

Raises the translation to a power. The result must be equivalent to self.to_superset() * n. Returns None if the result is not representable by Self. Read more

The translation needed to make a coincide with b, i.e., b = a * translation_to(a, b).

impl<N: Real, D: DimName, R> Mul<Point<N, D>> for Isometry<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, N: Real, D: DimName, R> Mul<Point<N, D>> for &'a Isometry<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, N: Real, D: DimName, R> Mul<&'b Point<N, D>> for Isometry<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Point<N, D>> for &'a Isometry<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Real, D: DimName, R> Transformation<Point<N, D>> for Isometry<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

Applies this group's action on a point from the euclidean space.

Applies this group's action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName, R> ProjectiveTransformation<Point<N, D>> for Isometry<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

Applies this group's inverse action on a point from the euclidean space.

Applies this group's inverse action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName, R> AffineTransformation<Point<N, D>> for Isometry<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

Type of the first rotation to be applied.

Type of the non-uniform scaling to be applied.

The type of the pure translation part of this affine transformation.

Decomposes this affine transformation into a rotation followed by a non-uniform scaling, followed by a rotation, followed by a translation. Read more

Appends a translation to this similarity.

Prepends a translation to this similarity.

Appends a rotation to this similarity.

Prepends a rotation to this similarity.

Appends a scaling factor to this similarity.

Prepends a scaling factor to this similarity.

Appends to this similarity a rotation centered at the point p, i.e., this point is left invariant. Read more

impl<N: Real, D: DimName, R> Similarity<Point<N, D>> for Isometry<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The type of the pure (uniform) scaling part of this similarity transformation.

The pure translational component of this similarity transformation.

The pure rotational component of this similarity transformation.

The pure scaling component of this similarity transformation.

Applies this transformation's pure translational part to a point.

Applies this transformation's pure rotational part to a point.

Applies this transformation's pure scaling part to a point.

Applies this transformation's pure rotational part to a vector.

Applies this transformation's pure scaling part to a vector.

Applies this transformation inverse's pure translational part to a point.

Applies this transformation inverse's pure rotational part to a point.

Applies this transformation inverse's pure scaling part to a point.

Applies this transformation inverse's pure rotational part to a vector.

Applies this transformation inverse's pure scaling part to a vector.

impl<N: Real, D: DimName, R> AlgaIsometry<Point<N, D>> for Isometry<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

impl<N: Real, D: DimName, R> DirectIsometry<Point<N, D>> for Isometry<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

impl<N: Real, D: DimName, R> Mul<Point<N, D>> for Similarity<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, N: Real, D: DimName, R> Mul<Point<N, D>> for &'a Similarity<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, N: Real, D: DimName, R> Mul<&'b Point<N, D>> for Similarity<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Point<N, D>> for &'a Similarity<N, D, R> where
    R: AlgaRotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Real, D: DimName, R> Transformation<Point<N, D>> for Similarity<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

Applies this group's action on a point from the euclidean space.

Applies this group's action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName, R> ProjectiveTransformation<Point<N, D>> for Similarity<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

Applies this group's inverse action on a point from the euclidean space.

Applies this group's inverse action on a vector from the euclidean space. Read more

impl<N: Real, D: DimName, R> AffineTransformation<Point<N, D>> for Similarity<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

Type of the non-uniform scaling to be applied.

Type of the first rotation to be applied.

The type of the pure translation part of this affine transformation.

Decomposes this affine transformation into a rotation followed by a non-uniform scaling, followed by a rotation, followed by a translation. Read more

Appends a translation to this similarity.

Prepends a translation to this similarity.

Appends a rotation to this similarity.

Prepends a rotation to this similarity.

Appends a scaling factor to this similarity.

Prepends a scaling factor to this similarity.

Appends to this similarity a rotation centered at the point p, i.e., this point is left invariant. Read more

impl<N: Real, D: DimName, R> AlgaSimilarity<Point<N, D>> for Similarity<N, D, R> where
    R: Rotation<Point<N, D>>,
    DefaultAllocator: Allocator<N, D>, 
[src]

The type of the pure (uniform) scaling part of this similarity transformation.

The pure translational component of this similarity transformation.

The pure rotational component of this similarity transformation.

The pure scaling component of this similarity transformation.

Applies this transformation's pure translational part to a point.

Applies this transformation's pure rotational part to a point.

Applies this transformation's pure scaling part to a point.

Applies this transformation's pure rotational part to a vector.

Applies this transformation's pure scaling part to a vector.

Applies this transformation inverse's pure translational part to a point.

Applies this transformation inverse's pure rotational part to a point.

Applies this transformation inverse's pure scaling part to a point.

Applies this transformation inverse's pure rotational part to a vector.

Applies this transformation inverse's pure scaling part to a vector.

impl<N, D: DimNameAdd<U1>, C: TCategory> Mul<Point<N, D>> for Transform<N, D, C> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
    DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
    DefaultAllocator: Allocator<N, D, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, N, D: DimNameAdd<U1>, C: TCategory> Mul<Point<N, D>> for &'a Transform<N, D, C> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
    DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
    DefaultAllocator: Allocator<N, D, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b, N, D: DimNameAdd<U1>, C: TCategory> Mul<&'b Point<N, D>> for Transform<N, D, C> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
    DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
    DefaultAllocator: Allocator<N, D, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategory> Mul<&'b Point<N, D>> for &'a Transform<N, D, C> where
    N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
    DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
    DefaultAllocator: Allocator<N, D, D>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N, D: DimNameAdd<U1>, C> Transformation<Point<N, D>> for Transform<N, D, C> where
    N: Real,
    C: TCategory,
    DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, DimNameSum<D, U1>> + Allocator<N, D, D> + Allocator<N, D>, 
[src]

Applies this group's action on a point from the euclidean space.

Applies this group's action on a vector from the euclidean space. Read more

impl<N, D: DimNameAdd<U1>, C> ProjectiveTransformation<Point<N, D>> for Transform<N, D, C> where
    N: Real,
    C: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, DimNameSum<D, U1>> + Allocator<N, D, D> + Allocator<N, D>, 
[src]

Applies this group's inverse action on a point from the euclidean space.

Applies this group's inverse action on a vector from the euclidean space. Read more

Auto Trait Implementations

impl<N, D> !Send for Point<N, D>

impl<N, D> !Sync for Point<N, D>