Expand description
This module contains abstract mathematical traits shared by types used in bevy_math.
Structs§
- Sum
- A type consisting of formal sums of elements from
VandW. That is, each valueSum(v, w)is thought of asv + w, with no available simplification. In particular, ifVandWare vector spaces, thenSum<V, W>is a vector space whose dimension is the sum of those ofVandW, and the field accessors.0and.1are vector space projections. - With
Derivative - A value with its derivative.
- With
TwoDerivatives - A value together with its first and second derivatives.
Traits§
- HasTangent
- A type that has tangents.
- Normed
Vector Space - A type that supports the operations of a normed vector space; i.e. a norm operation in addition
to those of
VectorSpace. Specifically, the implementor must guarantee that the following relationships hold, within the limitations of floating point arithmetic: - Scalar
Field - A type that supports the operations of a scalar field. An implementation should support:
- Stable
Interpolate - A type with a natural interpolation that provides strong subdivision guarantees.
- Vector
Space - A type that supports the mathematical operations of a real vector space, irrespective of dimension. In particular, this means that the implementing type supports: