Add the conversion of a translation to an isometry.
This commit is contained in:
parent
503040b8bc
commit
55689c238a
|
@ -151,6 +151,17 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<N: SimdRealField, D: DimName, R: AbstractRotation<N, D>> From<Translation<N, D>>
|
||||||
|
for Isometry<N, D, R>
|
||||||
|
where
|
||||||
|
DefaultAllocator: Allocator<N, D>,
|
||||||
|
{
|
||||||
|
#[inline]
|
||||||
|
fn from(tra: Translation<N, D>) -> Self {
|
||||||
|
Self::from_parts(tra, R::identity())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<N: SimdRealField, D: DimName, R> From<Isometry<N, D, R>> for MatrixN<N, DimNameSum<D, U1>>
|
impl<N: SimdRealField, D: DimName, R> From<Isometry<N, D, R>> for MatrixN<N, DimNameSum<D, U1>>
|
||||||
where
|
where
|
||||||
D: DimNameAdd<U1>,
|
D: DimNameAdd<U1>,
|
||||||
|
|
Loading…
Reference in New Issue