Struct SymmetricDMat4

Source
pub struct SymmetricDMat4 {
    pub m00: f64,
    pub m01: f64,
    pub m02: f64,
    pub m03: f64,
    pub m11: f64,
    pub m12: f64,
    pub m13: f64,
    pub m22: f64,
    pub m23: f64,
    pub m33: f64,
}
Expand description

The bottom left triangle (including the diagonal) of a symmetric 4x4 column-major matrix.

This is useful for storing a symmetric 4x4 matrix in a more compact form and performing some matrix operations more efficiently.

Some defining properties of symmetric matrices include:

  • The matrix is equal to its transpose.
  • The matrix has real eigenvalues.
  • The eigenvectors corresponding to the eigenvalues are orthogonal.
  • The matrix is always diagonalizable.

The sum and difference of two symmetric matrices is always symmetric. However, the product of two symmetric matrices is only symmetric if the matrices are commutable, meaning that AB = BA.

Fields§

§m00: f64

The first element of the first column.

§m01: f64

The second element of the first column.

§m02: f64

The third element of the first column.

§m03: f64

The fourth element of the first column.

§m11: f64

The second element of the second column.

§m12: f64

The third element of the second column.

§m13: f64

The fourth element of the second column.

§m22: f64

The third element of the third column.

§m23: f64

The fourth element of the third column.

§m33: f64

The fourth element of the fourth column.

Implementations§

Source§

impl SymmetricDMat4

Source

pub const ZERO: Self

A symmetric 4x4 matrix with all elements set to 0.0.

Source

pub const IDENTITY: Self

A symmetric 4x4 identity matrix, where all diagonal elements are 1.0, and all off-diagonal elements are 0.0.

Source

pub const NAN: Self

All NaNs.

Source

pub const fn new( m00: f64, m01: f64, m02: f64, m03: f64, m11: f64, m12: f64, m13: f64, m22: f64, m23: f64, m33: f64, ) -> Self

Creates a new symmetric 4x4 matrix from its bottom left triangle, including diagonal elements.

The elements are in column-major order mCR, where C is the column index and R is the row index.

Source

pub fn from_cols_unchecked( x_axis: DVec4, y_axis: DVec4, z_axis: DVec4, w_axis: DVec4, ) -> Self

Creates a symmetric 4x4 matrix from four column vectors.

Only the lower left triangle of the matrix is used. No check is performed to ensure that the given columns truly produce a symmetric matrix.

Source

pub const fn from_cols_array_unchecked(m: &[f64; 16]) -> Self

Creates a symmetric 4x4 matrix from an array stored in column major order.

Only the lower left triangle of the matrix is used. No check is performed to ensure that the given columns truly produce a symmetric matrix.

Source

pub const fn to_cols_array(&self) -> [f64; 16]

Creates an array storing data in column major order.

Source

pub fn from_cols_array_2d_unchecked(m: &[[f64; 4]; 4]) -> Self

Creates a symmetric 4x4 matrix from a 2D array stored in column major order.

Only the lower left triangle of the matrix is used. No check is performed to ensure that the given columns truly produce a symmetric matrix.

Source

pub const fn to_cols_array_2d(&self) -> [[f64; 4]; 4]

Creates a 2D array storing data in column major order.

Source

pub const fn from_cols_slice(slice: &[f64]) -> Self

Creates a 4x4 matrix from the first 16 values in slice.

Only the lower left triangle of the matrix is used. No check is performed to ensure that the given columns truly produce a symmetric matrix.

§Panics

Panics if slice is less than 16 elements long.

Source

pub fn from_diagonal(diagonal: DVec4) -> Self

Creates a symmetric 4x4 matrix with its diagonal set to diagonal and all other entries set to 0.0.

Source

pub fn try_from_mat4(mat: DMat4) -> Result<Self, MatConversionError>

Tries to create a symmetric 4x4 matrix from a 4x4 matrix.

§Errors

Returns a MatConversionError if the given matrix is not symmetric.

Source

pub fn from_mat4_unchecked(mat: DMat4) -> Self

Creates a symmetric 4x4 matrix from a 4x4 matrix.

Only the lower left triangle of the matrix is used. No check is performed to ensure that the given matrix is truly symmetric.

Source

pub const fn to_mat4(&self) -> DMat4

Creates a 4x4 matrix from the symmetric 4x4 matrix in self.

Source

pub fn from_outer_product(v: DVec4) -> Self

Creates a new symmetric 4x4 matrix from the outer product v * v^T.

Source

pub const fn col(&self, index: usize) -> DVec4

Returns the matrix column for the given index.

§Panics

Panics if index is greater than 3.

Source

pub const fn row(&self, index: usize) -> DVec4

Returns the matrix row for the given index.

§Panics

Panics if index is greater than 3.

Source

pub fn diagonal(&self) -> DVec4

Returns the diagonal of the matrix.

Source

pub fn is_finite(&self) -> bool

Returns true if, and only if, all elements are finite. If any element is either NaN or positive or negative infinity, this will return false.

Source

pub fn is_nan(&self) -> bool

Returns true if any elements are NaN.

Source

pub fn determinant(&self) -> f64

Returns the determinant of self.

Source

pub fn inverse(&self) -> Self

Returns the inverse of self.

If the matrix is not invertible the returned matrix will be invalid.

Source

pub fn inverse_or_zero(&self) -> Self

Returns the inverse of self, or a zero matrix if the matrix is not invertible.

Source

pub fn abs(&self) -> Self

Takes the absolute value of each element in self.

Source

pub fn mul_vec4(&self, rhs: DVec4) -> DVec4

Transforms a 4D vector.

Source

pub fn mul_mat4(&self, rhs: &DMat4) -> DMat4

Multiplies two 4x4 matrices.

Source

pub fn add_mat4(&self, rhs: &DMat4) -> DMat4

Adds two 4x4 matrices.

Source

pub fn sub_mat4(&self, rhs: &DMat4) -> DMat4

Subtracts two 4x4 matrices.

Source

pub fn mul_symmetric_mat4(&self, rhs: &Self) -> DMat4

Multiplies two symmetric 4x4 matrices.

Source

pub fn add_symmetric_mat4(&self, rhs: &Self) -> Self

Adds two symmetric 4x4 matrices.

Source

pub fn sub_symmetric_mat4(&self, rhs: &Self) -> Self

Subtracts two symmetric 4x4 matrices.

Source

pub fn mul_scalar(&self, rhs: f64) -> Self

Multiplies a 4x4 matrix by a scalar.

Source

pub fn div_scalar(&self, rhs: f64) -> Self

Divides a 4x4 matrix by a scalar.

Source§

impl SymmetricDMat4

Source

pub fn as_symmetric_mat4(&self) -> SymmetricMat4

Returns the single precision version of self.

Trait Implementations§

Source§

impl Add<&&SymmetricDMat4> for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&DMat4> for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &DMat4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&DMat4> for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &DMat4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&SymmetricDMat4> for &DMat4

Source§

type Output = DMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&SymmetricDMat4> for DMat4

Source§

type Output = DMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&SymmetricDMat4> for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<DMat4> for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: DMat4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<DMat4> for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: DMat4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<SymmetricDMat4> for DMat4

Source§

type Output = DMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: SymmetricDMat4) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<&SymmetricDMat4> for DMat4

Source§

fn add_assign(&mut self, rhs: &SymmetricDMat4)

Performs the += operation. Read more
Source§

impl AddAssign<&SymmetricDMat4> for SymmetricDMat4

Source§

fn add_assign(&mut self, rhs: &Self)

Performs the += operation. Read more
Source§

impl AddAssign<SymmetricDMat4> for DMat4

Source§

fn add_assign(&mut self, rhs: SymmetricDMat4)

Performs the += operation. Read more
Source§

impl AddAssign for SymmetricDMat4

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Clone for SymmetricDMat4

Source§

fn clone(&self) -> SymmetricDMat4

Returns a duplicate 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 Debug for SymmetricDMat4

Source§

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

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

impl Default for SymmetricDMat4

Source§

fn default() -> Self

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

impl Display for SymmetricDMat4

Source§

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

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

impl Div<&SymmetricDMat4> for &f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&SymmetricDMat4> for f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&f64> for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&f64> for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<SymmetricDMat4> for &f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: SymmetricDMat4) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<SymmetricDMat4> for f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: SymmetricDMat4) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<&f64> for SymmetricDMat4

Source§

fn div_assign(&mut self, rhs: &f64)

Performs the /= operation. Read more
Source§

impl DivAssign<f64> for SymmetricDMat4

Source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
Source§

impl From<SymmetricDMat4> for DMat4

Source§

fn from(mat: SymmetricDMat4) -> Self

Converts to this type from the input type.
Source§

impl FromReflect for SymmetricDMat4

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Constructs a concrete instance of Self from a reflected value.
Source§

fn take_from_reflect( reflect: Box<dyn PartialReflect>, ) -> Result<Self, Box<dyn PartialReflect>>

Attempts to downcast the given value to Self using, constructing the value using from_reflect if that fails. Read more
Source§

impl GetTypeRegistration for SymmetricDMat4

Source§

fn get_type_registration() -> TypeRegistration

Returns the default TypeRegistration for this type.
Source§

fn register_type_dependencies(registry: &mut TypeRegistry)

Registers other types needed by this type. Read more
Source§

impl Mul<&&SymmetricDMat4> for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&DMat4> for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &DMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&DMat4> for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &DMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&DVec4> for &SymmetricDMat4

Source§

type Output = DVec4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &DVec4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&DVec4> for SymmetricDMat4

Source§

type Output = DVec4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &DVec4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&SymmetricDMat4> for &DMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&SymmetricDMat4> for &f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&SymmetricDMat4> for DMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&SymmetricDMat4> for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&SymmetricDMat4> for f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&f64> for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&f64> for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<DMat4> for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<DMat4> for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<DVec4> for &SymmetricDMat4

Source§

type Output = DVec4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DVec4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<DVec4> for SymmetricDMat4

Source§

type Output = DVec4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DVec4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<SymmetricDMat4> for &DMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<SymmetricDMat4> for &f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<SymmetricDMat4> for DMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<SymmetricDMat4> for f64

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SymmetricDMat4) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<&SymmetricDMat4> for DMat4

Source§

fn mul_assign(&mut self, rhs: &SymmetricDMat4)

Performs the *= operation. Read more
Source§

impl MulAssign<&f64> for SymmetricDMat4

Source§

fn mul_assign(&mut self, rhs: &f64)

Performs the *= operation. Read more
Source§

impl MulAssign<SymmetricDMat4> for DMat4

Source§

fn mul_assign(&mut self, rhs: SymmetricDMat4)

Performs the *= operation. Read more
Source§

impl MulAssign<f64> for SymmetricDMat4

Source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
Source§

impl Neg for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl PartialEq for SymmetricDMat4

Source§

fn eq(&self, other: &SymmetricDMat4) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialReflect for SymmetricDMat4

Source§

fn get_represented_type_info(&self) -> Option<&'static TypeInfo>

Returns the TypeInfo of the type represented by this value. Read more
Source§

fn try_apply(&mut self, value: &dyn PartialReflect) -> Result<(), ApplyError>

Tries to apply a reflected value to this value. Read more
Source§

fn reflect_kind(&self) -> ReflectKind

Returns a zero-sized enumeration of “kinds” of type. Read more
Source§

fn reflect_ref(&self) -> ReflectRef<'_>

Returns an immutable enumeration of “kinds” of type. Read more
Source§

fn reflect_mut(&mut self) -> ReflectMut<'_>

Returns a mutable enumeration of “kinds” of type. Read more
Source§

fn reflect_owned(self: Box<Self>) -> ReflectOwned

Returns an owned enumeration of “kinds” of type. Read more
Source§

fn try_into_reflect( self: Box<Self>, ) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>>

Attempts to cast this type to a boxed, fully-reflected value.
Source§

fn try_as_reflect(&self) -> Option<&dyn Reflect>

Attempts to cast this type to a fully-reflected value.
Source§

fn try_as_reflect_mut(&mut self) -> Option<&mut dyn Reflect>

Attempts to cast this type to a mutable, fully-reflected value.
Source§

fn into_partial_reflect(self: Box<Self>) -> Box<dyn PartialReflect>

Casts this type to a boxed, reflected value. Read more
Source§

fn as_partial_reflect(&self) -> &dyn PartialReflect

Casts this type to a reflected value. Read more
Source§

fn as_partial_reflect_mut(&mut self) -> &mut dyn PartialReflect

Casts this type to a mutable, reflected value. Read more
Source§

fn reflect_partial_eq(&self, value: &dyn PartialReflect) -> Option<bool>

Returns a “partial equality” comparison result. Read more
Source§

fn reflect_clone(&self) -> Result<Box<dyn Reflect>, ReflectCloneError>

Attempts to clone Self using reflection. Read more
Source§

fn apply(&mut self, value: &(dyn PartialReflect + 'static))

Applies a reflected value to this value. Read more
Source§

fn to_dynamic(&self) -> Box<dyn PartialReflect>

Converts this reflected value into its dynamic representation based on its kind. Read more
Source§

fn reflect_clone_and_take<T>(&self) -> Result<T, ReflectCloneError>
where T: 'static, Self: Sized + TypePath,

For a type implementing PartialReflect, combines reflect_clone and take in a useful fashion, automatically constructing an appropriate ReflectCloneError if the downcast fails. Read more
Source§

fn reflect_hash(&self) -> Option<u64>

Returns a hash of the value (which includes the type). Read more
Source§

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

Debug formatter for the value. Read more
Source§

fn is_dynamic(&self) -> bool

Indicates whether or not this type is a dynamic type. Read more
Source§

impl Reflect for SymmetricDMat4

Source§

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

Returns the value as a Box<dyn Any>. Read more
Source§

fn as_any(&self) -> &dyn Any

Returns the value as a &dyn Any. Read more
Source§

fn as_any_mut(&mut self) -> &mut dyn Any

Returns the value as a &mut dyn Any. Read more
Source§

fn into_reflect(self: Box<Self>) -> Box<dyn Reflect>

Casts this type to a boxed, fully-reflected value.
Source§

fn as_reflect(&self) -> &dyn Reflect

Casts this type to a fully-reflected value.
Source§

fn as_reflect_mut(&mut self) -> &mut dyn Reflect

Casts this type to a mutable, fully-reflected value.
Source§

fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>>

Performs a type-checked assignment of a reflected value to this value. Read more
Source§

impl Struct for SymmetricDMat4

Source§

fn field(&self, name: &str) -> Option<&dyn PartialReflect>

Returns a reference to the value of the field named name as a &dyn PartialReflect.
Source§

fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>

Returns a mutable reference to the value of the field named name as a &mut dyn PartialReflect.
Source§

fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>

Returns a reference to the value of the field with index index as a &dyn PartialReflect.
Source§

fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>

Returns a mutable reference to the value of the field with index index as a &mut dyn PartialReflect.
Source§

fn name_at(&self, index: usize) -> Option<&str>

Returns the name of the field with index index.
Source§

fn field_len(&self) -> usize

Returns the number of fields in the struct.
Source§

fn iter_fields(&self) -> FieldIter<'_>

Returns an iterator over the values of the reflectable fields for this struct.
Source§

fn to_dynamic_struct(&self) -> DynamicStruct

Creates a new DynamicStruct from this struct.
Source§

fn get_represented_struct_info(&self) -> Option<&'static StructInfo>

Will return None if TypeInfo is not available.
Source§

impl Sub<&&SymmetricDMat4> for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&DMat4> for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &DMat4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&DMat4> for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &DMat4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&SymmetricDMat4> for &DMat4

Source§

type Output = DMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&SymmetricDMat4> for DMat4

Source§

type Output = DMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &SymmetricDMat4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&SymmetricDMat4> for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<DMat4> for &SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: DMat4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<DMat4> for SymmetricDMat4

Source§

type Output = DMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: DMat4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<SymmetricDMat4> for DMat4

Source§

type Output = DMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: SymmetricDMat4) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for &SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for SymmetricDMat4

Source§

type Output = SymmetricDMat4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<&SymmetricDMat4> for DMat4

Source§

fn sub_assign(&mut self, rhs: &SymmetricDMat4)

Performs the -= operation. Read more
Source§

impl SubAssign<&SymmetricDMat4> for SymmetricDMat4

Source§

fn sub_assign(&mut self, rhs: &Self)

Performs the -= operation. Read more
Source§

impl SubAssign<SymmetricDMat4> for DMat4

Source§

fn sub_assign(&mut self, rhs: SymmetricDMat4)

Performs the -= operation. Read more
Source§

impl SubAssign for SymmetricDMat4

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<'a> Sum<&'a SymmetricDMat4> for SymmetricDMat4

Source§

fn sum<I: Iterator<Item = &'a SymmetricDMat4>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for SymmetricDMat4

Source§

fn sum<I: Iterator<Item = SymmetricDMat4>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl TryFrom<DMat4> for SymmetricDMat4

Source§

type Error = MatConversionError

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

fn try_from(mat: DMat4) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TypePath for SymmetricDMat4

Source§

fn type_path() -> &'static str

Returns the fully qualified path of the underlying type. Read more
Source§

fn short_type_path() -> &'static str

Returns a short, pretty-print enabled path to the type. Read more
Source§

fn type_ident() -> Option<&'static str>

Returns the name of the type, or None if it is anonymous. Read more
Source§

fn crate_name() -> Option<&'static str>

Returns the name of the crate the type is in, or None if it is anonymous. Read more
Source§

fn module_path() -> Option<&'static str>

Returns the path to the module the type is in, or None if it is anonymous. Read more
Source§

impl Typed for SymmetricDMat4

Source§

fn type_info() -> &'static TypeInfo

Returns the compile-time info for the underlying type.
Source§

impl Copy for SymmetricDMat4

Source§

impl StructuralPartialEq for SymmetricDMat4

Auto Trait Implementations§

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
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: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

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

Source§

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

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

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

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

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

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

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

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

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

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

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

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

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DynamicTypePath for T
where T: TypePath,

Source§

impl<T> DynamicTyped for T
where T: Typed,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> GetField for S
where S: Struct,

Source§

fn get_field<T>(&self, name: &str) -> Option<&T>
where T: Reflect,

Returns a reference to the value of the field named name, downcast to T.
Source§

fn get_field_mut<T>(&mut self, name: &str) -> Option<&mut T>
where T: Reflect,

Returns a mutable reference to the value of the field named name, downcast to T.
Source§

impl<T> GetPath for T
where T: Reflect + ?Sized,

Source§

fn reflect_path<'p>( &self, path: impl ReflectPath<'p>, ) -> Result<&(dyn PartialReflect + 'static), ReflectPathError<'p>>

Returns a reference to the value specified by path. Read more
Source§

fn reflect_path_mut<'p>( &mut self, path: impl ReflectPath<'p>, ) -> Result<&mut (dyn PartialReflect + 'static), ReflectPathError<'p>>

Returns a mutable reference to the value specified by path. Read more
Source§

fn path<'p, T>( &self, path: impl ReflectPath<'p>, ) -> Result<&T, ReflectPathError<'p>>
where T: Reflect,

Returns a statically typed reference to the value specified by path. Read more
Source§

fn path_mut<'p, T>( &mut self, path: impl ReflectPath<'p>, ) -> Result<&mut T, ReflectPathError<'p>>
where T: Reflect,

Returns a statically typed mutable reference to the value specified by path. 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<A> Is for A
where A: Any,

Source§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. Read more
Source§

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

Source§

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
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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>,

Source§

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.
Source§

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

Source§

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

Creates a type-erased clone of this value.
Source§

impl<T> Reflectable for T