Trait nalgebra::Transform
[−]
[src]
pub trait Transform<V> { fn transform(&self, &V) -> V; fn inverse_transform(&self, &V) -> V; }
Trait of objects able to transform other objects.
This is typically implemented by matrices which transform vectors.
Required Methods
fn transform(&self, &V) -> V
Applies a transformation to v
.
fn inverse_transform(&self, &V) -> V
Applies an inverse transformation to v
.
Implementors
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Transform<Point1<N>> for Vector1<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Transform<Point2<N>> for Vector2<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Transform<Point3<N>> for Vector3<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Transform<Point4<N>> for Vector4<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Transform<Point5<N>> for Vector5<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Transform<Point6<N>> for Vector6<N>
impl<N: BaseNum + Neg<Output=N>> Transform<Vector3<N>> for UnitQuaternion<N>
impl<N: BaseNum + Neg<Output=N>> Transform<Point3<N>> for UnitQuaternion<N>
impl<N: BaseNum> Transform<Vector2<N>> for Rotation2<N>
impl<N: BaseNum> Transform<Point2<N>> for Rotation2<N>
impl<N: BaseNum> Transform<Vector3<N>> for Rotation3<N>
impl<N: BaseNum> Transform<Point3<N>> for Rotation3<N>
impl<N: BaseNum> Transform<Point2<N>> for Isometry2<N>
impl<N: BaseNum> Transform<Point3<N>> for Isometry3<N>
impl<N: BaseNum> Transform<Point2<N>> for Similarity2<N>
impl<N: BaseNum> Transform<Point3<N>> for Similarity3<N>
impl<V: Clone> Transform<V> for Identity