wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
wuzp::CoordinateSystem< IdentifierT_, MetricT_ > Struct Template Reference

A coordinate system: axes, an origin and a metric, as a type without runtime cost. More...

#include <wuzp/core/CoordinateSystem.hpp>

Detailed Description

template<typename IdentifierT_, EuclideanOrMinkowski MetricT_ = Euclidean>
struct wuzp::CoordinateSystem< IdentifierT_, MetricT_ >

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.

Template Parameters
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.


The documentation for this struct was generated from the following file: