Trait ncollide2d::utils::IsometryOps
source · [−]pub trait IsometryOps<N: RealField + Copy> {
fn absolute_transform_vector(&self, v: &Vector<N>) -> Vector<N>;
fn inverse_transform_unit_vector(
&self,
v: &Unit<Vector<N>>
) -> Unit<Vector<N>>;
fn lerp_slerp(&self, other: &Self, t: N) -> Self;
}
Expand description
Extra operations with isometries.
Required methods
fn absolute_transform_vector(&self, v: &Vector<N>) -> Vector<N>
fn absolute_transform_vector(&self, v: &Vector<N>) -> Vector<N>
Transform a vector by the absolute value of the homogeneous matrix
equivalent to self
.
Transform a unit vector by the inverse of self
.
fn lerp_slerp(&self, other: &Self, t: N) -> Self
fn lerp_slerp(&self, other: &Self, t: N) -> Self
Interpolates between two isometries, using LERP for the translation part and SLERP for the rotation part.