From 55689c238ae8f4933f29f2b253a811e5ca18b1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crozet=20S=C3=A9bastien?= Date: Sun, 25 Oct 2020 11:24:20 +0100 Subject: [PATCH] Add the conversion of a translation to an isometry. --- src/geometry/isometry_conversion.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/geometry/isometry_conversion.rs b/src/geometry/isometry_conversion.rs index 7cb6fe85..bdb128f9 100644 --- a/src/geometry/isometry_conversion.rs +++ b/src/geometry/isometry_conversion.rs @@ -151,6 +151,17 @@ where } } +impl> From> + for Isometry +where + DefaultAllocator: Allocator, +{ + #[inline] + fn from(tra: Translation) -> Self { + Self::from_parts(tra, R::identity()) + } +} + impl From> for MatrixN> where D: DimNameAdd,