Mathter
A configurable 3D math library for game developers.
Mathter
Vector
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>
10
bool
operator==
(
const
Vector<T, Dim, Packed>
& lhs,
const
Vector<T, Dim, Packed>
& rhs) {
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>
21
bool
operator!=
(
const
Vector<T, Dim, Packed>
& lhs,
const
Vector<T, Dim, Packed>
& rhs) {
22
return
!
operator==
(rhs);
23
}
24
25
}
// namespace mathter
mathter::operator!=
bool operator!=(const Matrix< T1, Rows, Columns, Order1, Layout1, Packed1 > &lhs, const Matrix< T2, Rows, Columns, Order2, Layout2, Packed2 > &rhs)
Definition:
MatrixCompare.hpp:19
mathter::operator==
bool operator==(const ApproxHelper< LinalgClass1 > &lhs, const LinalgClass2 &rhs)
Definition:
Approx.hpp:92
mathter::Vector
Represents a vector in N-dimensional space.
Definition:
Definitions.hpp:57
mathter
Definition:
Approx.hpp:11
VectorImpl.hpp
Generated by
1.8.13