From af3abbcb4d95ddf28259de0d2790d2b80befdd73 Mon Sep 17 00:00:00 2001
From: Quaternions <krakow20@gmail.com>
Date: Fri, 21 Feb 2025 13:14:57 -0800
Subject: [PATCH] Planar64Affine3::from_translation

---
 lib/common/src/integer.rs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/common/src/integer.rs b/lib/common/src/integer.rs
index 7c56790..6fa3381 100644
--- a/lib/common/src/integer.rs
+++ b/lib/common/src/integer.rs
@@ -659,6 +659,13 @@ impl Planar64Affine3{
 		Self{matrix3,translation}
 	}
 	#[inline]
+	pub const fn from_translation(translation:Planar64Vec3)->Self{
+		Self{
+			matrix3:mat3::identity(),
+			translation,
+		}
+	}
+	#[inline]
 	pub fn transform_point3(&self,point:Planar64Vec3)->vec3::Vector3<Fixed<2,64>>{
 		self.translation.fix_2()+self.matrix3*point
 	}