Mathter
A configurable 3D math library for game developers.
VectorCompare.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "VectorImpl.hpp"
4 
5 namespace mathter {
6 
9 template <class T, int Dim, bool Packed>
11  bool same = lhs.data[0] == rhs.data[0];
12  for (int i = 1; i < Dim; ++i) {
13  same = same && lhs.data[i] == rhs.data[i];
14  }
15  return same;
16 }
17 
20 template <class T, int Dim, bool Packed>
22  return !operator==(rhs);
23 }
24 
25 } // namespace mathter
bool operator!=(const Matrix< T1, Rows, Columns, Order1, Layout1, Packed1 > &lhs, const Matrix< T2, Rows, Columns, Order2, Layout2, Packed2 > &rhs)
Definition: MatrixCompare.hpp:19
bool operator==(const ApproxHelper< LinalgClass1 > &lhs, const LinalgClass2 &rhs)
Definition: Approx.hpp:92
Represents a vector in N-dimensional space.
Definition: Definitions.hpp:57
Definition: Approx.hpp:11