Struct jumpy::core::physics::collisions::rapier::nalgebra::OPoint

source ·
#[repr(C)]
pub struct OPoint<T, D>{ pub coords: Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>, }
Expand description

A point in an euclidean space.

The difference between a point and a vector is only semantic. See the user guide for details on the distinction. The most notable difference that vectors ignore translations. In particular, an Isometry2 or Isometry3 will transform points by applying a rotation and a translation on them. However, these isometries will only apply rotations to vectors (when doing isometry * vector, the translation part of the isometry is ignored).

§Construction

§Transformation

Transforming a point by an Isometry, rotation, etc. can be achieved by multiplication, e.g., isometry * point or rotation * point. Some of these transformation may have some other methods, e.g., isometry.inverse_transform_point(&point). See the documentation of said transformations for details.

Fields§

§coords: Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>

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

Implementations§

source§

impl<T, D> OPoint<T, D>

source

pub fn map<T2, F>(&self, f: F) -> OPoint<T2, D>
where T2: Scalar, F: FnMut(T) -> T2, DefaultAllocator: Allocator<T2, D>,

Returns a point containing the result of f applied to each of its entries.

§Example
let p = Point2::new(1.0, 2.0);
assert_eq!(p.map(|e| e * 10.0), Point2::new(10.0, 20.0));

// This works in any dimension.
let p = Point3::new(1.1, 2.1, 3.1);
assert_eq!(p.map(|e| e as u32), Point3::new(1, 2, 3));
source

pub fn apply<F>(&mut self, f: F)
where F: FnMut(&mut T),

Replaces each component of self by the result of a closure f applied on it.

§Example
let mut p = Point2::new(1.0, 2.0);
p.apply(|e| *e = *e * 10.0);
assert_eq!(p, Point2::new(10.0, 20.0));

// This works in any dimension.
let mut p = Point3::new(1.0, 2.0, 3.0);
p.apply(|e| *e = *e * 10.0);
assert_eq!(p, Point3::new(10.0, 20.0, 30.0));
source

pub fn to_homogeneous( &self, ) -> Matrix<T, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>
where T: One, D: DimNameAdd<Const<1>>, DefaultAllocator: Allocator<T, <D as DimNameAdd<Const<1>>>::Output>,

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

This is the same as .into().

§Example
let p = Point2::new(10.0, 20.0);
assert_eq!(p.to_homogeneous(), Vector3::new(10.0, 20.0, 1.0));

// This works in any dimension.
let p = Point3::new(10.0, 20.0, 30.0);
assert_eq!(p.to_homogeneous(), Vector4::new(10.0, 20.0, 30.0, 1.0));
source

pub fn lerp(&self, rhs: &OPoint<T, D>, t: T) -> OPoint<T, D>

Linear interpolation between two points.

Returns self * (1.0 - t) + rhs.coords * t, i.e., the linear blend of the points self and rhs using the scalar value t.

The value for a is not restricted to the range [0, 1].

§Examples:
let a = Point3::new(1.0, 2.0, 3.0);
let b = Point3::new(10.0, 20.0, 30.0);
assert_eq!(a.lerp(&b, 0.1), Point3::new(1.9, 3.8, 5.7));
source

pub fn from_coordinates( coords: Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>, ) -> OPoint<T, D>

👎Deprecated: Use Point::from(vector) instead.

Creates a new point with the given coordinates.

source

pub fn len(&self) -> usize

The dimension of this point.

§Example
let p = Point2::new(1.0, 2.0);
assert_eq!(p.len(), 2);

// This works in any dimension.
let p = Point3::new(10.0, 20.0, 30.0);
assert_eq!(p.len(), 3);
source

pub fn is_empty(&self) -> bool

Returns true if the point contains no elements.

§Example
let p = Point2::new(1.0, 2.0);
assert!(!p.is_empty());
source

pub fn stride(&self) -> usize

👎Deprecated: This methods is no longer significant and will always return 1.

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

source

pub fn iter( &self, ) -> MatrixIter<'_, T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>

Iterates through this point coordinates.

§Example
let p = Point3::new(1.0, 2.0, 3.0);
let mut it = p.iter().cloned();

assert_eq!(it.next(), Some(1.0));
assert_eq!(it.next(), Some(2.0));
assert_eq!(it.next(), Some(3.0));
assert_eq!(it.next(), None);
source

pub unsafe fn get_unchecked(&self, i: usize) -> &T

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

source

pub fn iter_mut( &mut self, ) -> MatrixIterMut<'_, T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>

Mutably iterates through this point coordinates.

§Example
let mut p = Point3::new(1.0, 2.0, 3.0);

for e in p.iter_mut() {
    *e *= 10.0;
}

assert_eq!(p, Point3::new(10.0, 20.0, 30.0));
source

pub unsafe fn get_unchecked_mut(&mut self, i: usize) -> &mut T

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

source

pub unsafe fn swap_unchecked(&mut self, i1: usize, i2: usize)

Swaps two entries without bound-checking.

source§

impl<T, D> OPoint<T, D>

source

pub fn inf(&self, other: &OPoint<T, D>) -> OPoint<T, D>

Computes the infimum (aka. componentwise min) of two points.

source

pub fn sup(&self, other: &OPoint<T, D>) -> OPoint<T, D>

Computes the supremum (aka. componentwise max) of two points.

source

pub fn inf_sup(&self, other: &OPoint<T, D>) -> (OPoint<T, D>, OPoint<T, D>)

Computes the (infimum, supremum) of two points.

source§

impl<T, D> OPoint<T, D>

§Other construction methods

source

pub fn origin() -> OPoint<T, D>
where T: Zero,

Creates a new point with all coordinates equal to zero.

§Example
// This works in any dimension.
// The explicit crate::<f32> type annotation may not always be needed,
// depending on the context of type inference.
let pt = Point2::<f32>::origin();
assert!(pt.x == 0.0 && pt.y == 0.0);

let pt = Point3::<f32>::origin();
assert!(pt.x == 0.0 && pt.y == 0.0 && pt.z == 0.0);
source

pub fn from_slice(components: &[T]) -> OPoint<T, D>

Creates a new point from a slice.

§Example
let data = [ 1.0, 2.0, 3.0 ];

let pt = Point2::from_slice(&data[..2]);
assert_eq!(pt, Point2::new(1.0, 2.0));

let pt = Point3::from_slice(&data);
assert_eq!(pt, Point3::new(1.0, 2.0, 3.0));
source

pub fn from_homogeneous( v: Matrix<T, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>, ) -> Option<OPoint<T, D>>

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.

§Example

let coords = Vector4::new(1.0, 2.0, 3.0, 1.0);
let pt = Point3::from_homogeneous(coords);
assert_eq!(pt, Some(Point3::new(1.0, 2.0, 3.0)));

// All component of the result will be divided by the
// last component of the vector, here 2.0.
let coords = Vector4::new(1.0, 2.0, 3.0, 2.0);
let pt = Point3::from_homogeneous(coords);
assert_eq!(pt, Some(Point3::new(0.5, 1.0, 1.5)));

// Fails because the last component is zero.
let coords = Vector4::new(1.0, 2.0, 3.0, 0.0);
let pt = Point3::from_homogeneous(coords);
assert!(pt.is_none());

// Works also in other dimensions.
let coords = Vector3::new(1.0, 2.0, 1.0);
let pt = Point2::from_homogeneous(coords);
assert_eq!(pt, Some(Point2::new(1.0, 2.0)));
source

pub fn cast<To>(self) -> OPoint<To, D>
where To: Scalar, OPoint<To, D>: SupersetOf<OPoint<T, D>>, DefaultAllocator: Allocator<To, D>,

Cast the components of self to another type.

§Example
let pt = Point2::new(1.0f64, 2.0);
let pt2 = pt.cast::<f32>();
assert_eq!(pt2, Point2::new(1.0f32, 2.0));
source§

impl<T> OPoint<T, Const<1>>
where T: Scalar,

§Construction from individual components

source

pub const fn new(x: T) -> OPoint<T, Const<1>>

Initializes this point from its components.

§Example
let p = Point1::new(1.0);
assert_eq!(p.x, 1.0);
source§

impl<T> OPoint<T, Const<2>>
where T: Scalar,

source

pub const fn new(x: T, y: T) -> OPoint<T, Const<2>>

Initializes this point from its components.

§Example
let p = Point2::new(1.0, 2.0);
assert!(p.x == 1.0 && p.y == 2.0);
source§

impl<T> OPoint<T, Const<3>>
where T: Scalar,

source

pub const fn new(x: T, y: T, z: T) -> OPoint<T, Const<3>>

Initializes this point from its components.

§Example
let p = Point3::new(1.0, 2.0, 3.0);
assert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0);
source§

impl<T> OPoint<T, Const<4>>
where T: Scalar,

source

pub const fn new(x: T, y: T, z: T, w: T) -> OPoint<T, Const<4>>

Initializes this point from its components.

§Example
let p = Point4::new(1.0, 2.0, 3.0, 4.0);
assert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0 && p.w == 4.0);
source§

impl<T> OPoint<T, Const<5>>
where T: Scalar,

source

pub const fn new(x: T, y: T, z: T, w: T, a: T) -> OPoint<T, Const<5>>

Initializes this point from its components.

§Example
let p = Point5::new(1.0, 2.0, 3.0, 4.0, 5.0);
assert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0 && p.w == 4.0 && p.a == 5.0);
source§

impl<T> OPoint<T, Const<6>>
where T: Scalar,

source

pub const fn new(x: T, y: T, z: T, w: T, a: T, b: T) -> OPoint<T, Const<6>>

Initializes this point from its components.

§Example
let p = Point6::new(1.0, 2.0, 3.0, 4.0, 5.0, 6.0);
assert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0 && p.w == 4.0 && p.a == 5.0 && p.b == 6.0);
source§

impl<T, const D: usize> OPoint<T, Const<D>>
where T: Scalar, Const<D>: ToTypenum,

§Swizzling

source

pub fn xx(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UTerm, Output = Greater>,

Builds a new point from components of self.

source

pub fn xxx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UTerm, Output = Greater>,

Builds a new point from components of self.

source

pub fn xy(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yx(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yy(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xxy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xyx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xyy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yxx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yxy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yyx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yyy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UTerm, B1>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xz(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yz(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zx(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zy(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zz(&self) -> OPoint<T, Const<2>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xxz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xyz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xzx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xzy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn xzz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yxz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yyz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yzx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yzy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn yzz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zxx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zxy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zxz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zyx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zyy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zyz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zzx(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zzy(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

source

pub fn zzz(&self) -> OPoint<T, Const<3>>
where <Const<D> as ToTypenum>::Typenum: Cmp<UInt<UInt<UTerm, B1>, B0>, Output = Greater>,

Builds a new point from components of self.

Trait Implementations§

source§

impl<T, D> AbsDiffEq for OPoint<T, D>
where T: Scalar + AbsDiffEq, D: DimName, <T as AbsDiffEq>::Epsilon: Clone, DefaultAllocator: Allocator<T, D>,

§

type Epsilon = <T as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
source§

fn default_epsilon() -> <OPoint<T, D> as AbsDiffEq>::Epsilon

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

fn abs_diff_eq( &self, other: &OPoint<T, D>, epsilon: <OPoint<T, D> as AbsDiffEq>::Epsilon, ) -> bool

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

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool

The inverse of [AbsDiffEq::abs_diff_eq].
source§

impl<'a, 'b, T, D1, D2, SB> Add<&'b Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the + operator.
source§

fn add( self, right: &'b Matrix<T, D2, Const<1>, SB>, ) -> <&'a OPoint<T, D1> as Add<&'b Matrix<T, D2, Const<1>, SB>>>::Output

Performs the + operation. Read more
source§

impl<'b, T, D1, D2, SB> Add<&'b Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the + operator.
source§

fn add( self, right: &'b Matrix<T, D2, Const<1>, SB>, ) -> <OPoint<T, D1> as Add<&'b Matrix<T, D2, Const<1>, SB>>>::Output

Performs the + operation. Read more
source§

impl<'a, T, D1, D2, SB> Add<Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the + operator.
source§

fn add( self, right: Matrix<T, D2, Const<1>, SB>, ) -> <&'a OPoint<T, D1> as Add<Matrix<T, D2, Const<1>, SB>>>::Output

Performs the + operation. Read more
source§

impl<T, D1, D2, SB> Add<Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the + operator.
source§

fn add( self, right: Matrix<T, D2, Const<1>, SB>, ) -> <OPoint<T, D1> as Add<Matrix<T, D2, Const<1>, SB>>>::Output

Performs the + operation. Read more
source§

impl<'b, T, D1, D2, SB> AddAssign<&'b Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where D1: DimName, D2: Dim, T: Scalar + ClosedAdd, SB: Storage<T, D2>, ShapeConstraint: SameNumberOfRows<D1, D2>, DefaultAllocator: Allocator<T, D1>,

source§

fn add_assign(&mut self, right: &'b Matrix<T, D2, Const<1>, SB>)

Performs the += operation. Read more
source§

impl<T, D1, D2, SB> AddAssign<Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where D1: DimName, D2: Dim, T: Scalar + ClosedAdd, SB: Storage<T, D2>, ShapeConstraint: SameNumberOfRows<D1, D2>, DefaultAllocator: Allocator<T, D1>,

source§

fn add_assign(&mut self, right: Matrix<T, D2, Const<1>, SB>)

Performs the += operation. Read more
source§

impl<N> AsBytes for OPoint<N, Const<2>>
where N: RealField,

source§

fn as_bytes(&self) -> &[u8]

Converts self to a slice of bytes.
source§

impl<N> AsBytes for OPoint<N, Const<3>>
where N: RealField,

source§

fn as_bytes(&self) -> &[u8]

Converts self to a slice of bytes.
source§

impl<T, D> Bounded for OPoint<T, D>

source§

fn max_value() -> OPoint<T, D>

Returns the largest finite number this type can represent
source§

fn min_value() -> OPoint<T, D>

Returns the smallest finite number this type can represent
source§

impl<T, D> Clone for OPoint<T, D>

source§

fn clone(&self) -> OPoint<T, D>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T, D> Debug for OPoint<T, D>

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T, D> Default for OPoint<T, D>
where T: Scalar + Zero, D: DimName, DefaultAllocator: Allocator<T, D>,

source§

fn default() -> OPoint<T, D>

Returns the “default value” for a type. Read more
source§

impl<T> Deref for OPoint<T, Const<1>>
where T: Scalar,

§

type Target = X<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<OPoint<T, Const<1>> as Deref>::Target

Dereferences the value.
source§

impl<T> Deref for OPoint<T, Const<2>>
where T: Scalar,

§

type Target = XY<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<OPoint<T, Const<2>> as Deref>::Target

Dereferences the value.
source§

impl<T> Deref for OPoint<T, Const<3>>
where T: Scalar,

§

type Target = XYZ<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<OPoint<T, Const<3>> as Deref>::Target

Dereferences the value.
source§

impl<T> Deref for OPoint<T, Const<4>>
where T: Scalar,

§

type Target = XYZW<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<OPoint<T, Const<4>> as Deref>::Target

Dereferences the value.
source§

impl<T> Deref for OPoint<T, Const<5>>
where T: Scalar,

§

type Target = XYZWA<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<OPoint<T, Const<5>> as Deref>::Target

Dereferences the value.
source§

impl<T> Deref for OPoint<T, Const<6>>
where T: Scalar,

§

type Target = XYZWAB<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<OPoint<T, Const<6>> as Deref>::Target

Dereferences the value.
source§

impl<T> DerefMut for OPoint<T, Const<1>>
where T: Scalar,

source§

fn deref_mut(&mut self) -> &mut <OPoint<T, Const<1>> as Deref>::Target

Mutably dereferences the value.
source§

impl<T> DerefMut for OPoint<T, Const<2>>
where T: Scalar,

source§

fn deref_mut(&mut self) -> &mut <OPoint<T, Const<2>> as Deref>::Target

Mutably dereferences the value.
source§

impl<T> DerefMut for OPoint<T, Const<3>>
where T: Scalar,

source§

fn deref_mut(&mut self) -> &mut <OPoint<T, Const<3>> as Deref>::Target

Mutably dereferences the value.
source§

impl<T> DerefMut for OPoint<T, Const<4>>
where T: Scalar,

source§

fn deref_mut(&mut self) -> &mut <OPoint<T, Const<4>> as Deref>::Target

Mutably dereferences the value.
source§

impl<T> DerefMut for OPoint<T, Const<5>>
where T: Scalar,

source§

fn deref_mut(&mut self) -> &mut <OPoint<T, Const<5>> as Deref>::Target

Mutably dereferences the value.
source§

impl<T> DerefMut for OPoint<T, Const<6>>
where T: Scalar,

source§

fn deref_mut(&mut self) -> &mut <OPoint<T, Const<6>> as Deref>::Target

Mutably dereferences the value.
source§

impl<T, D> Display for OPoint<T, D>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T, D> Div<T> for &'a OPoint<T, D>

§

type Output = OPoint<T, D>

The resulting type after applying the / operator.
source§

fn div(self, right: T) -> <&'a OPoint<T, D> as Div<T>>::Output

Performs the / operation. Read more
source§

impl<T, D> Div<T> for OPoint<T, D>

§

type Output = OPoint<T, D>

The resulting type after applying the / operator.
source§

fn div(self, right: T) -> <OPoint<T, D> as Div<T>>::Output

Performs the / operation. Read more
source§

impl<T, D> DivAssign<T> for OPoint<T, D>

source§

fn div_assign(&mut self, right: T)

Performs the /= operation. Read more
source§

impl<T, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 16]> for OPoint<T, Const<D>>
where T: Scalar + Copy + PrimitiveSimdValue + From<[<T as SimdValue>::Element; 16]>, <T as SimdValue>::Element: Scalar + Copy, <DefaultAllocator as Allocator<<T as SimdValue>::Element, Const<D>>>::Buffer: Copy,

source§

fn from( arr: [OPoint<<T as SimdValue>::Element, Const<D>>; 16], ) -> OPoint<T, Const<D>>

Converts to this type from the input type.
source§

impl<T, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 2]> for OPoint<T, Const<D>>
where T: Scalar + Copy + PrimitiveSimdValue + From<[<T as SimdValue>::Element; 2]>, <T as SimdValue>::Element: Scalar + Copy, <DefaultAllocator as Allocator<<T as SimdValue>::Element, Const<D>>>::Buffer: Copy,

source§

fn from( arr: [OPoint<<T as SimdValue>::Element, Const<D>>; 2], ) -> OPoint<T, Const<D>>

Converts to this type from the input type.
source§

impl<T, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 4]> for OPoint<T, Const<D>>
where T: Scalar + Copy + PrimitiveSimdValue + From<[<T as SimdValue>::Element; 4]>, <T as SimdValue>::Element: Scalar + Copy, <DefaultAllocator as Allocator<<T as SimdValue>::Element, Const<D>>>::Buffer: Copy,

source§

fn from( arr: [OPoint<<T as SimdValue>::Element, Const<D>>; 4], ) -> OPoint<T, Const<D>>

Converts to this type from the input type.
source§

impl<T, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 8]> for OPoint<T, Const<D>>
where T: Scalar + Copy + PrimitiveSimdValue + From<[<T as SimdValue>::Element; 8]>, <T as SimdValue>::Element: Scalar + Copy, <DefaultAllocator as Allocator<<T as SimdValue>::Element, Const<D>>>::Buffer: Copy,

source§

fn from( arr: [OPoint<<T as SimdValue>::Element, Const<D>>; 8], ) -> OPoint<T, Const<D>>

Converts to this type from the input type.
source§

impl<T, const D: usize> From<[T; D]> for OPoint<T, Const<D>>
where T: Scalar,

source§

fn from(coords: [T; D]) -> OPoint<T, Const<D>>

Converts to this type from the input type.
source§

impl From<BVec2> for OPoint<bool, Const<2>>

source§

fn from(e: BVec2) -> OPoint<bool, Const<2>>

Converts to this type from the input type.
source§

impl From<BVec3> for OPoint<bool, Const<3>>

source§

fn from(e: BVec3) -> OPoint<bool, Const<3>>

Converts to this type from the input type.
source§

impl From<BVec4> for OPoint<bool, Const<4>>

source§

fn from(e: BVec4) -> OPoint<bool, Const<4>>

Converts to this type from the input type.
source§

impl From<DVec2> for OPoint<f64, Const<2>>

source§

fn from(e: DVec2) -> OPoint<f64, Const<2>>

Converts to this type from the input type.
source§

impl From<DVec3> for OPoint<f64, Const<3>>

source§

fn from(e: DVec3) -> OPoint<f64, Const<3>>

Converts to this type from the input type.
source§

impl From<DVec4> for OPoint<f64, Const<4>>

source§

fn from(e: DVec4) -> OPoint<f64, Const<4>>

Converts to this type from the input type.
source§

impl From<IVec2> for OPoint<i32, Const<2>>

source§

fn from(e: IVec2) -> OPoint<i32, Const<2>>

Converts to this type from the input type.
source§

impl From<IVec3> for OPoint<i32, Const<3>>

source§

fn from(e: IVec3) -> OPoint<i32, Const<3>>

Converts to this type from the input type.
source§

impl From<IVec4> for OPoint<i32, Const<4>>

source§

fn from(e: IVec4) -> OPoint<i32, Const<4>>

Converts to this type from the input type.
source§

impl<T, D> From<Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>> for OPoint<T, D>

source§

fn from( coords: Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>, ) -> OPoint<T, D>

Converts to this type from the input type.
source§

impl<T, const D: usize> From<OPoint<T, Const<D>>> for [T; D]
where T: Scalar,

source§

fn from(p: OPoint<T, Const<D>>) -> [T; D]

Converts to this type from the input type.
source§

impl<T, R, const D: usize> From<OPoint<T, Const<D>>> for Isometry<T, R, D>
where T: SimdRealField, R: AbstractRotation<T, D>,

source§

fn from(coords: OPoint<T, Const<D>>) -> Isometry<T, R, D>

Converts to this type from the input type.
source§

impl<T, const D: usize> From<OPoint<T, Const<D>>> for Scale<T, D>
where T: Scalar,

source§

fn from(pt: OPoint<T, Const<D>>) -> Scale<T, D>

Converts to this type from the input type.
source§

impl<T, const D: usize> From<OPoint<T, Const<D>>> for Translation<T, D>
where T: Scalar,

source§

fn from(pt: OPoint<T, Const<D>>) -> Translation<T, D>

Converts to this type from the input type.
source§

impl<T, D> From<OPoint<T, D>> for Matrix<T, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>
where T: Scalar + Zero + One, D: DimName + DimNameAdd<Const<1>>, DefaultAllocator: Allocator<T, <D as DimNameAdd<Const<1>>>::Output> + Allocator<T, D>,

source§

fn from( t: OPoint<T, D>, ) -> Matrix<T, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>

Converts to this type from the input type.
source§

impl From<OPoint<bool, Const<2>>> for BVec2

source§

fn from(e: OPoint<bool, Const<2>>) -> BVec2

Converts to this type from the input type.
source§

impl From<OPoint<bool, Const<3>>> for BVec3

source§

fn from(e: OPoint<bool, Const<3>>) -> BVec3

Converts to this type from the input type.
source§

impl From<OPoint<bool, Const<4>>> for BVec4

source§

fn from(e: OPoint<bool, Const<4>>) -> BVec4

Converts to this type from the input type.
source§

impl From<OPoint<f32, Const<2>>> for Vec2

source§

fn from(e: OPoint<f32, Const<2>>) -> Vec2

Converts to this type from the input type.
source§

impl From<OPoint<f32, Const<3>>> for Vec3

source§

fn from(e: OPoint<f32, Const<3>>) -> Vec3

Converts to this type from the input type.
source§

impl From<OPoint<f32, Const<3>>> for Vec3A

source§

fn from(e: OPoint<f32, Const<3>>) -> Vec3A

Converts to this type from the input type.
source§

impl From<OPoint<f32, Const<4>>> for Vec4

source§

fn from(e: OPoint<f32, Const<4>>) -> Vec4

Converts to this type from the input type.
source§

impl From<OPoint<f64, Const<2>>> for DVec2

source§

fn from(e: OPoint<f64, Const<2>>) -> DVec2

Converts to this type from the input type.
source§

impl From<OPoint<f64, Const<3>>> for DVec3

source§

fn from(e: OPoint<f64, Const<3>>) -> DVec3

Converts to this type from the input type.
source§

impl From<OPoint<f64, Const<4>>> for DVec4

source§

fn from(e: OPoint<f64, Const<4>>) -> DVec4

Converts to this type from the input type.
source§

impl From<OPoint<i32, Const<2>>> for IVec2

source§

fn from(e: OPoint<i32, Const<2>>) -> IVec2

Converts to this type from the input type.
source§

impl From<OPoint<i32, Const<3>>> for IVec3

source§

fn from(e: OPoint<i32, Const<3>>) -> IVec3

Converts to this type from the input type.
source§

impl From<OPoint<i32, Const<4>>> for IVec4

source§

fn from(e: OPoint<i32, Const<4>>) -> IVec4

Converts to this type from the input type.
source§

impl From<OPoint<u32, Const<2>>> for UVec2

source§

fn from(e: OPoint<u32, Const<2>>) -> UVec2

Converts to this type from the input type.
source§

impl From<OPoint<u32, Const<3>>> for UVec3

source§

fn from(e: OPoint<u32, Const<3>>) -> UVec3

Converts to this type from the input type.
source§

impl From<OPoint<u32, Const<4>>> for UVec4

source§

fn from(e: OPoint<u32, Const<4>>) -> UVec4

Converts to this type from the input type.
source§

impl From<UVec2> for OPoint<u32, Const<2>>

source§

fn from(e: UVec2) -> OPoint<u32, Const<2>>

Converts to this type from the input type.
source§

impl From<UVec3> for OPoint<u32, Const<3>>

source§

fn from(e: UVec3) -> OPoint<u32, Const<3>>

Converts to this type from the input type.
source§

impl From<UVec4> for OPoint<u32, Const<4>>

source§

fn from(e: UVec4) -> OPoint<u32, Const<4>>

Converts to this type from the input type.
source§

impl From<Vec2> for OPoint<f32, Const<2>>

source§

fn from(e: Vec2) -> OPoint<f32, Const<2>>

Converts to this type from the input type.
source§

impl From<Vec3> for OPoint<f32, Const<3>>

source§

fn from(e: Vec3) -> OPoint<f32, Const<3>>

Converts to this type from the input type.
source§

impl From<Vec3A> for OPoint<f32, Const<3>>

source§

fn from(e: Vec3A) -> OPoint<f32, Const<3>>

Converts to this type from the input type.
source§

impl From<Vec4> for OPoint<f32, Const<4>>

source§

fn from(e: Vec4) -> OPoint<f32, Const<4>>

Converts to this type from the input type.
source§

impl<T, D> Hash for OPoint<T, D>
where T: Scalar + Hash, D: DimName, DefaultAllocator: Allocator<T, D>,

source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T, D> Index<usize> for OPoint<T, D>

§

type Output = T

The returned type after indexing.
source§

fn index(&self, i: usize) -> &<OPoint<T, D> as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<T, D> IndexMut<usize> for OPoint<T, D>

source§

fn index_mut(&mut self, i: usize) -> &mut <OPoint<T, D> as Index<usize>>::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<'a, 'b, T> Mul<&'b OPoint<T, Const<2>>> for &'a Unit<Complex<T>>

§

type Output = OPoint<T, Const<2>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<2>>, ) -> <&'a Unit<Complex<T>> as Mul<&'b OPoint<T, Const<2>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T> Mul<&'b OPoint<T, Const<2>>> for Unit<Complex<T>>

§

type Output = OPoint<T, Const<2>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<2>>, ) -> <Unit<Complex<T>> as Mul<&'b OPoint<T, Const<2>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T> Mul<&'b OPoint<T, Const<3>>> for &'a Unit<DualQuaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<3>>, ) -> <&'a Unit<DualQuaternion<T>> as Mul<&'b OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T> Mul<&'b OPoint<T, Const<3>>> for &'a Unit<Quaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<3>>, ) -> <&'a Unit<Quaternion<T>> as Mul<&'b OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T> Mul<&'b OPoint<T, Const<3>>> for Unit<DualQuaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<3>>, ) -> <Unit<DualQuaternion<T>> as Mul<&'b OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T> Mul<&'b OPoint<T, Const<3>>> for Unit<Quaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<3>>, ) -> <Unit<Quaternion<T>> as Mul<&'b OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T, R, const D: usize> Mul<&'b OPoint<T, Const<D>>> for &'a Isometry<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <&'a Isometry<T, R, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T, const D: usize> Mul<&'b OPoint<T, Const<D>>> for &'a Rotation<T, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <&'a Rotation<T, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T, const D: usize> Mul<&'b OPoint<T, Const<D>>> for &'a Scale<T, D>
where T: Scalar + ClosedMul, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <&'a Scale<T, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T, R, const D: usize> Mul<&'b OPoint<T, Const<D>>> for &'a Similarity<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <&'a Similarity<T, R, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T, C, const D: usize> Mul<&'b OPoint<T, Const<D>>> for &'a Transform<T, C, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<D>>, ) -> <&'a Transform<T, C, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T, const D: usize> Mul<&'b OPoint<T, Const<D>>> for &'a Translation<T, D>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <&'a Translation<T, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T, R, const D: usize> Mul<&'b OPoint<T, Const<D>>> for Isometry<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <Isometry<T, R, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T, const D: usize> Mul<&'b OPoint<T, Const<D>>> for Rotation<T, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <Rotation<T, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T, const D: usize> Mul<&'b OPoint<T, Const<D>>> for Scale<T, D>
where T: Scalar + ClosedMul, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <Scale<T, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T, R, const D: usize> Mul<&'b OPoint<T, Const<D>>> for Similarity<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <Similarity<T, R, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T, C, const D: usize> Mul<&'b OPoint<T, Const<D>>> for Transform<T, C, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &'b OPoint<T, Const<D>>, ) -> <Transform<T, C, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T, const D: usize> Mul<&'b OPoint<T, Const<D>>> for Translation<T, D>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D>>, ) -> <Translation<T, D> as Mul<&'b OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, 'b, T, SA, const D2: usize, const R1: usize, const C1: usize> Mul<&'b OPoint<T, Const<D2>>> for &'a Matrix<T, Const<R1>, Const<C1>, SA>
where T: Scalar + Zero + One + ClosedAdd + ClosedMul, SA: Storage<T, Const<R1>, Const<C1>>, ShapeConstraint: AreMultipliable<Const<R1>, Const<C1>, Const<D2>, Const<1>>,

§

type Output = OPoint<T, Const<R1>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D2>>, ) -> <&'a Matrix<T, Const<R1>, Const<C1>, SA> as Mul<&'b OPoint<T, Const<D2>>>>::Output

Performs the * operation. Read more
source§

impl<'b, T, SA, const D2: usize, const R1: usize, const C1: usize> Mul<&'b OPoint<T, Const<D2>>> for Matrix<T, Const<R1>, Const<C1>, SA>
where T: Scalar + Zero + One + ClosedAdd + ClosedMul, SA: Storage<T, Const<R1>, Const<C1>>, ShapeConstraint: AreMultipliable<Const<R1>, Const<C1>, Const<D2>, Const<1>>,

§

type Output = OPoint<T, Const<R1>>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<T, Const<D2>>, ) -> <Matrix<T, Const<R1>, Const<C1>, SA> as Mul<&'b OPoint<T, Const<D2>>>>::Output

Performs the * operation. Read more
source§

impl<'b, D> Mul<&'b OPoint<i64, D>> for i64

§

type Output = OPoint<i64, D>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<i64, D>, ) -> <i64 as Mul<&'b OPoint<i64, D>>>::Output

Performs the * operation. Read more
source§

impl<'b, D> Mul<&'b OPoint<u32, D>> for u32

§

type Output = OPoint<u32, D>

The resulting type after applying the * operator.
source§

fn mul( self, right: &'b OPoint<u32, D>, ) -> <u32 as Mul<&'b OPoint<u32, D>>>::Output

Performs the * operation. Read more
source§

impl<'a, T> Mul<OPoint<T, Const<2>>> for &'a Unit<Complex<T>>

§

type Output = OPoint<T, Const<2>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<2>>, ) -> <&'a Unit<Complex<T>> as Mul<OPoint<T, Const<2>>>>::Output

Performs the * operation. Read more
source§

impl<T> Mul<OPoint<T, Const<2>>> for Unit<Complex<T>>

§

type Output = OPoint<T, Const<2>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<2>>, ) -> <Unit<Complex<T>> as Mul<OPoint<T, Const<2>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T> Mul<OPoint<T, Const<3>>> for &'a Unit<DualQuaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<3>>, ) -> <&'a Unit<DualQuaternion<T>> as Mul<OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T> Mul<OPoint<T, Const<3>>> for &'a Unit<Quaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<3>>, ) -> <&'a Unit<Quaternion<T>> as Mul<OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<T> Mul<OPoint<T, Const<3>>> for Unit<DualQuaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<3>>, ) -> <Unit<DualQuaternion<T>> as Mul<OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<T> Mul<OPoint<T, Const<3>>> for Unit<Quaternion<T>>

§

type Output = OPoint<T, Const<3>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<3>>, ) -> <Unit<Quaternion<T>> as Mul<OPoint<T, Const<3>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, R, const D: usize> Mul<OPoint<T, Const<D>>> for &'a Isometry<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <&'a Isometry<T, R, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, const D: usize> Mul<OPoint<T, Const<D>>> for &'a Rotation<T, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <&'a Rotation<T, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, const D: usize> Mul<OPoint<T, Const<D>>> for &'a Scale<T, D>
where T: Scalar + ClosedMul, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <&'a Scale<T, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, R, const D: usize> Mul<OPoint<T, Const<D>>> for &'a Similarity<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <&'a Similarity<T, R, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, C, const D: usize> Mul<OPoint<T, Const<D>>> for &'a Transform<T, C, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<D>>, ) -> <&'a Transform<T, C, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, const D: usize> Mul<OPoint<T, Const<D>>> for &'a Translation<T, D>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <&'a Translation<T, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<T, R, const D: usize> Mul<OPoint<T, Const<D>>> for Isometry<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <Isometry<T, R, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<T, const D: usize> Mul<OPoint<T, Const<D>>> for Rotation<T, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <Rotation<T, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<T, const D: usize> Mul<OPoint<T, Const<D>>> for Scale<T, D>
where T: Scalar + ClosedMul, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <Scale<T, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<T, R, const D: usize> Mul<OPoint<T, Const<D>>> for Similarity<T, R, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <Similarity<T, R, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<T, C, const D: usize> Mul<OPoint<T, Const<D>>> for Transform<T, C, D>

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: OPoint<T, Const<D>>, ) -> <Transform<T, C, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<T, const D: usize> Mul<OPoint<T, Const<D>>> for Translation<T, D>
where T: Scalar + ClosedAdd, ShapeConstraint: SameNumberOfRows<Const<D>, Const<D>, Representative = Const<D>> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>,

§

type Output = OPoint<T, Const<D>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D>>, ) -> <Translation<T, D> as Mul<OPoint<T, Const<D>>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, SA, const D2: usize, const R1: usize, const C1: usize> Mul<OPoint<T, Const<D2>>> for &'a Matrix<T, Const<R1>, Const<C1>, SA>
where T: Scalar + Zero + One + ClosedAdd + ClosedMul, SA: Storage<T, Const<R1>, Const<C1>>, ShapeConstraint: AreMultipliable<Const<R1>, Const<C1>, Const<D2>, Const<1>>,

§

type Output = OPoint<T, Const<R1>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D2>>, ) -> <&'a Matrix<T, Const<R1>, Const<C1>, SA> as Mul<OPoint<T, Const<D2>>>>::Output

Performs the * operation. Read more
source§

impl<T, SA, const D2: usize, const R1: usize, const C1: usize> Mul<OPoint<T, Const<D2>>> for Matrix<T, Const<R1>, Const<C1>, SA>
where T: Scalar + Zero + One + ClosedAdd + ClosedMul, SA: Storage<T, Const<R1>, Const<C1>>, ShapeConstraint: AreMultipliable<Const<R1>, Const<C1>, Const<D2>, Const<1>>,

§

type Output = OPoint<T, Const<R1>>

The resulting type after applying the * operator.
source§

fn mul( self, right: OPoint<T, Const<D2>>, ) -> <Matrix<T, Const<R1>, Const<C1>, SA> as Mul<OPoint<T, Const<D2>>>>::Output

Performs the * operation. Read more
source§

impl<D> Mul<OPoint<i64, D>> for i64

§

type Output = OPoint<i64, D>

The resulting type after applying the * operator.
source§

fn mul(self, right: OPoint<i64, D>) -> <i64 as Mul<OPoint<i64, D>>>::Output

Performs the * operation. Read more
source§

impl<D> Mul<OPoint<u32, D>> for u32

§

type Output = OPoint<u32, D>

The resulting type after applying the * operator.
source§

fn mul(self, right: OPoint<u32, D>) -> <u32 as Mul<OPoint<u32, D>>>::Output

Performs the * operation. Read more
source§

impl<'a, T, D> Mul<T> for &'a OPoint<T, D>

§

type Output = OPoint<T, D>

The resulting type after applying the * operator.
source§

fn mul(self, right: T) -> <&'a OPoint<T, D> as Mul<T>>::Output

Performs the * operation. Read more
source§

impl<T, D> Mul<T> for OPoint<T, D>

§

type Output = OPoint<T, D>

The resulting type after applying the * operator.
source§

fn mul(self, right: T) -> <OPoint<T, D> as Mul<T>>::Output

Performs the * operation. Read more
source§

impl<T, D> MulAssign<T> for OPoint<T, D>

source§

fn mul_assign(&mut self, right: T)

Performs the *= operation. Read more
source§

impl<'a, T, D> Neg for &'a OPoint<T, D>
where T: Scalar + ClosedNeg, D: DimName, DefaultAllocator: Allocator<T, D>,

§

type Output = OPoint<T, D>

The resulting type after applying the - operator.
source§

fn neg(self) -> <&'a OPoint<T, D> as Neg>::Output

Performs the unary - operation. Read more
source§

impl<T, D> Neg for OPoint<T, D>
where T: Scalar + ClosedNeg, D: DimName, DefaultAllocator: Allocator<T, D>,

§

type Output = OPoint<T, D>

The resulting type after applying the - operator.
source§

fn neg(self) -> <OPoint<T, D> as Neg>::Output

Performs the unary - operation. Read more
source§

impl<T, D> PartialEq for OPoint<T, D>

source§

fn eq(&self, right: &OPoint<T, D>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T, D> PartialOrd for OPoint<T, D>

source§

fn partial_cmp(&self, other: &OPoint<T, D>) -> Option<Ordering>

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

fn lt(&self, right: &OPoint<T, D>) -> bool

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

fn le(&self, right: &OPoint<T, D>) -> bool

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

fn gt(&self, right: &OPoint<T, D>) -> bool

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

fn ge(&self, right: &OPoint<T, D>) -> bool

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

impl<T, D> RelativeEq for OPoint<T, D>
where T: Scalar + RelativeEq, D: DimName, <T as AbsDiffEq>::Epsilon: Clone, DefaultAllocator: Allocator<T, D>,

source§

fn default_max_relative() -> <OPoint<T, D> as AbsDiffEq>::Epsilon

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

fn relative_eq( &self, other: &OPoint<T, D>, epsilon: <OPoint<T, D> as AbsDiffEq>::Epsilon, max_relative: <OPoint<T, D> as AbsDiffEq>::Epsilon, ) -> bool

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

fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of [RelativeEq::relative_eq].
source§

impl<T, const D: usize> SimdValue for OPoint<T, Const<D>>
where T: Scalar + SimdValue, <T as SimdValue>::Element: Scalar,

§

type Element = OPoint<<T as SimdValue>::Element, Const<D>>

The type of the elements of each lane of this SIMD value.
§

type SimdBool = <T as SimdValue>::SimdBool

Type of the result of comparing two SIMD values like self.
source§

fn lanes() -> usize

The number of lanes of this SIMD value.
source§

fn splat( val: <OPoint<T, Const<D>> as SimdValue>::Element, ) -> OPoint<T, Const<D>>

Initializes an SIMD value with each lanes set to val.
source§

fn extract(&self, i: usize) -> <OPoint<T, Const<D>> as SimdValue>::Element

Extracts the i-th lane of self. Read more
source§

unsafe fn extract_unchecked( &self, i: usize, ) -> <OPoint<T, Const<D>> as SimdValue>::Element

Extracts the i-th lane of self without bound-checking.
source§

fn replace( &mut self, i: usize, val: <OPoint<T, Const<D>> as SimdValue>::Element, )

Replaces the i-th lane of self by val. Read more
source§

unsafe fn replace_unchecked( &mut self, i: usize, val: <OPoint<T, Const<D>> as SimdValue>::Element, )

Replaces the i-th lane of self by val without bound-checking.
source§

fn select( self, cond: <OPoint<T, Const<D>> as SimdValue>::SimdBool, other: OPoint<T, Const<D>>, ) -> OPoint<T, Const<D>>

Merges self and other depending on the lanes of cond. Read more
§

fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Self
where Self: Clone,

Applies a function to each lane of self. Read more
§

fn zip_map_lanes( self, b: Self, f: impl Fn(Self::Element, Self::Element) -> Self::Element, ) -> Self
where Self: Clone,

Applies a function to each lane of self paired with the corresponding lane of b. Read more
source§

impl<'a, 'b, T, D1, D2, SB> Sub<&'b Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the - operator.
source§

fn sub( self, right: &'b Matrix<T, D2, Const<1>, SB>, ) -> <&'a OPoint<T, D1> as Sub<&'b Matrix<T, D2, Const<1>, SB>>>::Output

Performs the - operation. Read more
source§

impl<'b, T, D1, D2, SB> Sub<&'b Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the - operator.
source§

fn sub( self, right: &'b Matrix<T, D2, Const<1>, SB>, ) -> <OPoint<T, D1> as Sub<&'b Matrix<T, D2, Const<1>, SB>>>::Output

Performs the - operation. Read more
source§

impl<'a, 'b, T, D> Sub<&'b OPoint<T, D>> for &'a OPoint<T, D>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D>,

§

type Output = Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>

The resulting type after applying the - operator.
source§

fn sub( self, right: &'b OPoint<T, D>, ) -> <&'a OPoint<T, D> as Sub<&'b OPoint<T, D>>>::Output

Performs the - operation. Read more
source§

impl<'b, T, D> Sub<&'b OPoint<T, D>> for OPoint<T, D>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D>,

§

type Output = Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>

The resulting type after applying the - operator.
source§

fn sub( self, right: &'b OPoint<T, D>, ) -> <OPoint<T, D> as Sub<&'b OPoint<T, D>>>::Output

Performs the - operation. Read more
source§

impl<'a, T, D1, D2, SB> Sub<Matrix<T, D2, Const<1>, SB>> for &'a OPoint<T, D1>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the - operator.
source§

fn sub( self, right: Matrix<T, D2, Const<1>, SB>, ) -> <&'a OPoint<T, D1> as Sub<Matrix<T, D2, Const<1>, SB>>>::Output

Performs the - operation. Read more
source§

impl<T, D1, D2, SB> Sub<Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D1, D2, Representative = D1> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D1: DimName, D2: Dim, SB: Storage<T, D2>, DefaultAllocator: Allocator<T, D1>,

§

type Output = OPoint<T, D1>

The resulting type after applying the - operator.
source§

fn sub( self, right: Matrix<T, D2, Const<1>, SB>, ) -> <OPoint<T, D1> as Sub<Matrix<T, D2, Const<1>, SB>>>::Output

Performs the - operation. Read more
source§

impl<'a, T, D> Sub<OPoint<T, D>> for &'a OPoint<T, D>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D>,

§

type Output = Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>

The resulting type after applying the - operator.
source§

fn sub( self, right: OPoint<T, D>, ) -> <&'a OPoint<T, D> as Sub<OPoint<T, D>>>::Output

Performs the - operation. Read more
source§

impl<T, D> Sub for OPoint<T, D>
where T: Scalar + ClosedSub, ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<Const<1>, Const<1>, Representative = Const<1>>, D: DimName, DefaultAllocator: Allocator<T, D>,

§

type Output = Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>

The resulting type after applying the - operator.
source§

fn sub(self, right: OPoint<T, D>) -> <OPoint<T, D> as Sub>::Output

Performs the - operation. Read more
source§

impl<'b, T, D1, D2, SB> SubAssign<&'b Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where D1: DimName, D2: Dim, T: Scalar + ClosedSub, SB: Storage<T, D2>, ShapeConstraint: SameNumberOfRows<D1, D2>, DefaultAllocator: Allocator<T, D1>,

source§

fn sub_assign(&mut self, right: &'b Matrix<T, D2, Const<1>, SB>)

Performs the -= operation. Read more
source§

impl<T, D1, D2, SB> SubAssign<Matrix<T, D2, Const<1>, SB>> for OPoint<T, D1>
where D1: DimName, D2: Dim, T: Scalar + ClosedSub, SB: Storage<T, D2>, ShapeConstraint: SameNumberOfRows<D1, D2>, DefaultAllocator: Allocator<T, D1>,

source§

fn sub_assign(&mut self, right: Matrix<T, D2, Const<1>, SB>)

Performs the -= operation. Read more
source§

impl<T1, T2, D> SubsetOf<Matrix<T2, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T2, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>> for OPoint<T1, D>
where D: DimNameAdd<Const<1>>, T1: Scalar, T2: Scalar + Zero + One + ClosedDiv + SupersetOf<T1>, DefaultAllocator: Allocator<T1, D> + Allocator<T2, D> + Allocator<T1, <D as DimNameAdd<Const<1>>>::Output> + Allocator<T2, <D as DimNameAdd<Const<1>>>::Output>,

source§

fn to_superset( &self, ) -> Matrix<T2, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T2, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>

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

fn is_in_subset( v: &Matrix<T2, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T2, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>, ) -> bool

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

fn from_superset_unchecked( v: &Matrix<T2, <D as DimNameAdd<Const<1>>>::Output, Const<1>, <DefaultAllocator as Allocator<T2, <D as DimNameAdd<Const<1>>>::Output>>::Buffer>, ) -> OPoint<T1, D>

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

fn from_superset(element: &T) -> Option<Self>

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

impl<T1, T2, D> SubsetOf<OPoint<T2, D>> for OPoint<T1, D>
where D: DimName, T1: Scalar, T2: Scalar + SupersetOf<T1>, DefaultAllocator: Allocator<T1, D> + Allocator<T2, D>,

source§

fn to_superset(&self) -> OPoint<T2, D>

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

fn is_in_subset(m: &OPoint<T2, D>) -> bool

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

fn from_superset_unchecked(m: &OPoint<T2, D>) -> OPoint<T1, D>

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

fn from_superset(element: &T) -> Option<Self>

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

impl<T, D> UlpsEq for OPoint<T, D>
where T: Scalar + UlpsEq, D: DimName, <T as AbsDiffEq>::Epsilon: Clone, DefaultAllocator: Allocator<T, D>,

source§

fn default_max_ulps() -> u32

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

fn ulps_eq( &self, other: &OPoint<T, D>, epsilon: <OPoint<T, D> as AbsDiffEq>::Epsilon, max_ulps: u32, ) -> bool

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

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of [UlpsEq::ulps_eq].
source§

impl<T, D> Copy for OPoint<T, D>
where T: Scalar + Copy, D: DimName, DefaultAllocator: Allocator<T, D>, Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D>>::Buffer>: Copy,

source§

impl<T, D> Eq for OPoint<T, D>
where T: Scalar + Eq, D: DimName, DefaultAllocator: Allocator<T, D>,

Auto Trait Implementations§

§

impl<T, D> !Freeze for OPoint<T, D>

§

impl<T, D> !RefUnwindSafe for OPoint<T, D>

§

impl<T, D> !Send for OPoint<T, D>

§

impl<T, D> !Sync for OPoint<T, D>

§

impl<T, D> !Unpin for OPoint<T, D>

§

impl<T, D> !UnwindSafe for OPoint<T, D>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AnyEq for T
where T: Any + PartialEq,

§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

§

fn as_any(&self) -> &(dyn Any + 'static)

§

impl<T, U> AsBindGroupShaderType<U> for T
where U: ShaderType, &'a T: for<'a> Into<U>,

§

fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U

Return the T [ShaderType] for self. When used in [AsBindGroup] derives, it is safe to assume that all images in self exist.
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> DynClone for T
where T: Clone,

§

impl<T> DynEq for T
where T: Any + Eq,

§

fn as_any(&self) -> &(dyn Any + 'static)

Casts the type to dyn Any.
§

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

This method tests for self and other values to be equal. Read more
§

impl<T> DynHash for T
where T: DynEq + Hash,

§

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Casts the type to dyn Any.
§

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

§

impl<T> FromWorld for T
where T: Default,

§

fn from_world(_world: &mut World) -> T

Creates Self using data from the given [World]
§

impl<T> FromWorld for T
where T: Default,

§

fn from_world(_world: &World) -> T

Creates Self using data from the given World.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

§

fn into_sample(self) -> T

source§

impl<T> LowerBounded for T
where T: Bounded,

source§

fn min_value() -> T

Returns the smallest finite number this type can represent
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> RawClone for T
where T: Clone,

§

unsafe fn raw_clone(src: *const c_void, dst: *mut c_void)

Write the default value of the type to the pointer. Read more
§

fn raw_clone_cb() -> Unsafe<&'static (dyn Fn(*const c_void, *mut c_void) + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawDefault for T
where T: Default,

§

unsafe fn raw_default(dst: *mut c_void)

Write the default value of the type to the pointer. Read more
§

fn raw_default_cb() -> Unsafe<&'static (dyn Fn(*mut c_void) + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawDrop for T

§

unsafe fn raw_drop(ptr: *mut c_void)

Write the default value of the type to the pointer. Read more
§

fn raw_drop_cb() -> Unsafe<&'static (dyn Fn(*mut c_void) + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawEq for T
where T: Eq,

§

unsafe fn raw_eq(a: *const c_void, b: *const c_void) -> bool

Get the hash of the type. Read more
§

fn raw_eq_cb() -> Unsafe<&'static (dyn Fn(*const c_void, *const c_void) -> bool + Send + Sync)>

Get a callback suitable for [SchemaData].
§

impl<T> RawHash for T
where T: Hash,

§

unsafe fn raw_hash(ptr: *const c_void) -> u64

Get the hash of the type. Read more
§

fn raw_hash_cb() -> Unsafe<&'static (dyn Fn(*const c_void) -> u64 + Send + Sync)>

Get a callback suitable for [SchemaData].
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> SimdPartialOrd for T
where T: SimdValue<Element = T, SimdBool = bool> + PartialOrd,

§

fn simd_gt(self, other: T) -> <T as SimdValue>::SimdBool

Lanewise greater than > comparison.
§

fn simd_lt(self, other: T) -> <T as SimdValue>::SimdBool

Lanewise less than < comparison.
§

fn simd_ge(self, other: T) -> <T as SimdValue>::SimdBool

Lanewise greater or equal >= comparison.
§

fn simd_le(self, other: T) -> <T as SimdValue>::SimdBool

Lanewise less or equal <= comparison.
§

fn simd_eq(self, other: T) -> <T as SimdValue>::SimdBool

Lanewise equal == comparison.
§

fn simd_ne(self, other: T) -> <T as SimdValue>::SimdBool

Lanewise not equal != comparison.
§

fn simd_max(self, other: T) -> T

Lanewise max value.
§

fn simd_min(self, other: T) -> T

Lanewise min value.
§

fn simd_clamp(self, min: T, max: T) -> T

Clamps each lane of self between the corresponding lane of min and max.
§

fn simd_horizontal_min(self) -> <T as SimdValue>::Element

The min value among all lanes of self.
§

fn simd_horizontal_max(self) -> <T as SimdValue>::Element

The max value among all lanes of self.
§

impl<'gc, T> Singleton<'gc> for T
where T: Default,

§

fn create(_: Context<'gc>) -> T

§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

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

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

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

fn from_subset(element: &SS) -> SP

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

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

§

fn clone_type_data(&self) -> Box<dyn TypeData>

§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

source§

impl<T> UpperBounded for T
where T: Bounded,

source§

fn max_value() -> T

Returns the largest finite number this type can represent
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T, Right> ClosedAdd<Right> for T
where T: Add<Right, Output = T> + AddAssign<Right>,

§

impl<T, Right> ClosedDiv<Right> for T
where T: Div<Right, Output = T> + DivAssign<Right>,

§

impl<T, Right> ClosedMul<Right> for T
where T: Mul<Right, Output = T> + MulAssign<Right>,

§

impl<T> ClosedNeg for T
where T: Neg<Output = T>,

§

impl<T, Right> ClosedSub<Right> for T
where T: Sub<Right, Output = T> + SubAssign<Right>,

§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

§

impl<T> Formattable for T
where T: Deref, <T as Deref>::Target: Formattable,

§

impl<T> Parsable for T
where T: Deref, <T as Deref>::Target: Parsable,

source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + for<'a> Send + Sync,