46 this->
x =
static_cast<T
>(v.
x);
47 this->
y =
static_cast<T
>(v.
y);
154 template <
typename T,
unsigned int N>
158 template <
typename T>
165 template <
typename T>
172 template <
typename T,
unsigned int N>
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24
Represents 2D vectors and points.
Definition: Vector.h:27
Vector2< T > & operator=(Vector2< T > const &v)
Assigns components of one vector to another vector.
Definition: Vector.h:45
Vector2< T > operator-()
Negates the vector.
Definition: Vector.h:58
T x
The X component of the vector.
Definition: Vector.h:79
T y
The Y component of the vector.
Definition: Vector.h:81
Vector2(T a, T b)
Creates a Vector2 instance with the given X and Y components.
Definition: Vector.h:35
Vector2< T > operator+(Vector2< T > const &v) const
Adds corresponding components of two vectors.
Definition: Vector.h:74
Vector2< T > operator-(Vector2< T > const &v) const
Subtracts one vector from another.
Definition: Vector.h:65
Vector2< T > operator*(T const &s) const
Multiplies each vector component by a number.
Definition: Vector.h:56
Represents 3D vectors and points.
Definition: Vector.h:86
Vector3< T > operator-() const
Negates the vector.
Definition: Vector.h:116
Vector3< T > operator*(T const &s) const
Multiplies each vector component by a number.
Definition: Vector.h:112
Vector3< T > operator-(Vector3< T > const &v) const
Subtracts one vector from another.
Definition: Vector.h:123
Vector3(T a, T b, T c)
Creates a Vector3 instance with the given X, Y, and Z components.
Definition: Vector.h:95
Vector3< bool > LessThan(Vector3< T > const &v) const
Checks whether the parameters of one vector are less than the parameters of the other vector.
Definition: Vector.h:142
Vector3< T > operator+(Vector3< T > const &v) const
Adds corresponding components of two vectors.
Definition: Vector.h:132
T z
The Z component of the vector.
Definition: Vector.h:151
T y
The Y component of the vector.
Definition: Vector.h:149
T x
The X component of the vector.
Definition: Vector.h:147
Vector3(T const &s)
Creates a Vector3 instance.
Definition: Vector.h:105
The implementation structure of a vector.
Definition: Vector.h:156