|
wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
|
A coordinate system: axes, an origin and a metric, as a type without runtime cost. More...
#include <wuzp/core/CoordinateSystem.hpp>
A coordinate system: axes, an origin and a metric, as a type without runtime cost.
Operations combining tensors require them to be expressed in the same coordinate system.
| IdentifierT_ | A type that tells coordinate systems apart, e.g. struct World {}; for CoordinateSystem<World>. |
| MetricT_ | The metric: Euclidean, the default, for space, or Minkowski for spacetime, e.g. CoordinateSystem<Spacetime, Minkowski> (see Metric). The metric is part of the type: coordinate systems with the same identifier and different metrics do not match. |
Definition at line 42 of file CoordinateSystem.hpp.