appropriate types
This commit is contained in:
parent
5e32fbe4ae
commit
1c4dc0edbe
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user