From ddedb56a3ba64a48db1fdc72b6a98d16eaed64f8 Mon Sep 17 00:00:00 2001
From: Quaternions <krakow20@gmail.com>
Date: Thu, 6 Feb 2025 15:05:26 -0800
Subject: [PATCH] common: integer: 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 d9a4022..bab0404 100644
--- a/lib/common/src/integer.rs
+++ b/lib/common/src/integer.rs
@@ -660,6 +660,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
 	}