Module common_traits

Source
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 V and W. That is, each value Sum(v, w) is thought of as v + w, with no available simplification. In particular, if V and W are vector spaces, then Sum<V, W> is a vector space whose dimension is the sum of those of V and W, and the field accessors .0 and .1 are vector space projections.
WithDerivative
A value with its derivative.
WithTwoDerivatives
A value together with its first and second derivatives.

Traits§

HasTangent
A type that has tangents.
NormedVectorSpace
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:
StableInterpolate
A type with a natural interpolation that provides strong subdivision guarantees.
VectorSpace
A type that supports the mathematical operations of a real vector space, irrespective of dimension. In particular, this means that the implementing type supports: