nalgebra::geometry

Type Alias 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>

Source§

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>

Source§

type Error = ()

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

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

Performs the conversion.