[−][src]Module sdfu::mathtypes
Structs
Dim2D | 2D marker struct. |
Dim3D | 2D marker struct. |
Traits
Clamp | Clamp the value(s) of self to between |
Dimension | A trait used to mark the dimensionality of a vector/SDF/implmentation of an SDF combinator. |
Exp2 | Raises |
Lerp | Linear interpolate between self and other with a factor between Self::zero() and Self::one. |
Log2 | Returns log base 2 of self. |
MaxMin | Return the maximum or minimum of |
One | The multiplicative identity. |
PointFive | Multiply by half. |
Rotation | This is a trait for types that can rotate an SDF. Note that the implementation should actually rotate the vec by the inverse of the native rotation that the type would normally produce. |
Vec | Functionality that should be shared between all vector types. |
Vec2 | Functionality that must be implmeented by 2D vectors. |
Vec3 | Functionality that must be implmeented by 3D vectors. |
Zero | The additive identity. |