Trait amethyst_rhusics::Convert[][src]

pub trait Convert {
    type Output;
    fn convert(&self) -> Self::Output;
}

Utility trait for converting data between types.

Primarily used for mapping data into amethysts internal data formation in Transform, for example converting between Point2<S> and Vector3<f32> (which is used inside Transform).

Associated Types

Output type of conversion

Required Methods

Convert

Implementations on Foreign Types

impl Convert for Point2<f32>
[src]

impl Convert for Point3<f32>
[src]

impl Convert for Basis2<f32>
[src]

impl Convert for Quaternion<f32>
[src]

Implementors