nalgebra::geometry

Type Alias Similarity3

Source
pub type Similarity3<T> = Similarity<T, UnitQuaternion<T>, 3>;
Expand description

A 3-dimensional similarity.

Aliased Type§

struct Similarity3<T> {
    pub isometry: Isometry<T, Unit<Quaternion<T>>, 3>,
    /* private fields */
}

Fields§

§isometry: Isometry<T, Unit<Quaternion<T>>, 3>

The part of this similarity that does not include the scaling factor.

Trait Implementations§

Source§

impl TryFrom<DMat4> for Similarity3<f64>

Source§

type Error = ()

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

fn try_from(mat4: DMat4) -> Result<Similarity3<f64>, ()>

Performs the conversion.
Source§

impl TryFrom<Mat4> for Similarity3<f32>

Source§

type Error = ()

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

fn try_from(mat4: Mat4) -> Result<Similarity3<f32>, ()>

Performs the conversion.