From 1c4dc0edbe6d4b3e202c8a8420c8df007753327a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 28 Sep 2024 20:19:03 -0700 Subject: [PATCH] appropriate types --- absrel/src/abs.rs | 1 + absrel/src/rel.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/absrel/src/abs.rs b/absrel/src/abs.rs index b043ce6..1e7a997 100644 --- a/absrel/src/abs.rs +++ b/absrel/src/abs.rs @@ -1,3 +1,4 @@ /// This type represents an absolute value, such as a coordinate for a world position. /// This is called a euclidean point in Geometric Algebra. +/// The most appropriate type here is a fixed-point value. pub struct Absolute(T); diff --git a/absrel/src/rel.rs b/absrel/src/rel.rs index 3778b34..13ead80 100644 --- a/absrel/src/rel.rs +++ b/absrel/src/rel.rs @@ -4,4 +4,5 @@ /// implement your number-crunching logic using this type. /// Once the calculation is complete, it can be added to an absolute value /// with the effect of offsetting the value to a new absolute value. +/// The most appropriate type here is a floating point value. pub struct Relative(T);