appropriate types

This commit is contained in:
Quaternions 2024-09-28 20:19:03 -07:00
parent 5e32fbe4ae
commit 1c4dc0edbe
2 changed files with 2 additions and 0 deletions

View File

@ -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>(T);

View File

@ -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>(T);