Beispiel #1
0
Multivector<double, Frame, 1> Normalize(
    Multivector<Scalar, Frame, 1> const& multivector) {
  return Multivector<double, Frame, 1>(Normalize(multivector.coordinates()));
}
inline bool operator!=(Multivector<Scalar, Frame, rank> const& left,
                       Multivector<Scalar, Frame, rank> const& right) {
  return left.coordinates() != right.coordinates();
}
inline Multivector<Scalar, Frame, rank> operator/(
    Multivector<Scalar, Frame, rank> const& left,
    double const right) {
  return Multivector<Scalar, Frame, rank>(left.coordinates() / right);
}
inline Multivector<Scalar, Frame, rank> operator*(
    double const left,
    Multivector<Scalar, Frame, rank> const& right) {
  return Multivector<Scalar, Frame, rank>(left * right.coordinates());
}
inline Multivector<Scalar, Frame, rank> operator-(
    Multivector<Scalar, Frame, rank> const& left,
    Multivector<Scalar, Frame, rank> const& right) {
  return Multivector<Scalar, Frame, rank>(
      left.coordinates() - right.coordinates());
}
inline Multivector<Scalar, Frame, rank> operator+(
    Multivector<Scalar, Frame, rank> const& right) {
  return Multivector<Scalar, Frame, rank>(+right.coordinates());
}