Type Alias nalgebra::geometry::Similarity2

source ·
pub type Similarity2<T> = Similarity<T, UnitComplex<T>, 2>;
Expand description

A 2-dimensional similarity.

Aliased Type§

struct Similarity2<T> {
    pub isometry: Isometry<T, Unit<Complex<T>>, 2>,
    /* private fields */
}

Fields§

§isometry: Isometry<T, Unit<Complex<T>>, 2>

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

Trait Implementations§

source§

impl TryFrom<DMat3> for Similarity2<f64>

§

type Error = ()

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

fn try_from(mat3: DMat3) -> Result<Similarity2<f64>, ()>

Performs the conversion.
source§

impl TryFrom<Mat3> for Similarity2<f32>

§

type Error = ()

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

fn try_from(mat3: Mat3) -> Result<Similarity2<f32>, ()>

Performs the conversion.