#include <TVector2.h>
Definition at line 5 of file TVector2.h.
◆ TVector2() [1/4]
◆ TVector2() [2/4]
Definition at line 9 of file TVector2.h.
constexpr void Set(TFLOAT x, TFLOAT y)
◆ TVector2() [3/4]
TVector2::TVector2 |
( |
TFLOAT | coords[2] | ) |
|
|
inlineconstexpr |
Definition at line 10 of file TVector2.h.
10{
Set( coords[ 0 ], coords[ 1 ] ); }
◆ TVector2() [4/4]
TVector2::TVector2 |
( |
const TVector2 & | other | ) |
|
|
inlineconstexpr |
◆ Abs() [1/2]
Definition at line 109 of file TVector2.h.
TFORCEINLINE TFLOAT Abs(TFLOAT fVal)
◆ Abs() [2/2]
void TVector2::Abs |
( |
const TVector2 & | vec3 | ) |
|
|
inline |
◆ Add() [1/2]
◆ Add() [2/2]
void TVector2::Add |
( |
const TVector2 & | vec | ) |
|
|
inlineconstexpr |
◆ Distance()
Definition at line 127 of file TVector2.h.
127{ return ( vec2 - vec1 ).Magnitude(); }
◆ DistanceSq()
Definition at line 128 of file TVector2.h.
128{ return ( vec2 - vec1 ).MagnitudeSq(); }
◆ Divide() [1/4]
void TVector2::Divide |
( |
const TVector2 & | vec | ) |
|
|
inlineconstexpr |
◆ Divide() [2/4]
Definition at line 60 of file TVector2.h.
61 {
64 }
constexpr void Divide(const TVector2 &vec)
◆ Divide() [3/4]
◆ Divide() [4/4]
void TVector2::Divide |
( |
TFLOAT | scalar | ) |
|
|
inlineconstexpr |
◆ DotProduct()
Definition at line 129 of file TVector2.h.
129{
return vec1.
x * vec2.
x + vec1.
y * vec2.
y; }
◆ IsEqual()
◆ Magnitude()
TFLOAT TVector2::Magnitude |
( |
| ) |
const |
|
inline |
Definition at line 112 of file TVector2.h.
TFORCEINLINE TFLOAT Sqrt(TFLOAT a_fX)
◆ MagnitudeSq()
TFLOAT TVector2::MagnitudeSq |
( |
| ) |
const |
|
inlineconstexpr |
◆ Multiply() [1/4]
void TVector2::Multiply |
( |
const TVector2 & | vec | ) |
|
|
inlineconstexpr |
◆ Multiply() [2/4]
Definition at line 83 of file TVector2.h.
84 {
87 }
constexpr void Multiply(const TVector2 &vec)
◆ Multiply() [3/4]
◆ Multiply() [4/4]
void TVector2::Multiply |
( |
TFLOAT | scalar | ) |
|
|
inlineconstexpr |
◆ Negate()
void TVector2::Negate |
( |
| ) |
|
|
inlineconstexpr |
◆ Normalize()
void TVector2::Normalize |
( |
| ) |
|
|
inline |
Definition at line 95 of file TVector2.h.
96 {
98 {
100 Set(
x * magnitude,
y * magnitude );
101 }
102 else
103 {
105 }
106 }
TFORCEINLINE TFLOAT OneOverSqrt(TFLOAT a_fX)
constexpr TFLOAT MagnitudeSq() const
◆ operator*()
Definition at line 119 of file TVector2.h.
119{
return {
x * other.
x,
y * other.
y }; }
◆ operator+()
Definition at line 117 of file TVector2.h.
117{
return {
x + other.
x,
y + other.
y }; }
◆ operator+=()
void TVector2::operator+= |
( |
const TVector2 & | other | ) |
|
|
inlineconstexpr |
Definition at line 123 of file TVector2.h.
constexpr void Add(const TVector2 &vec)
◆ operator-()
Definition at line 118 of file TVector2.h.
118{
return {
x - other.
x,
y - other.
y }; }
◆ operator/()
Definition at line 120 of file TVector2.h.
120{
return {
x / other.
x,
y / other.
y }; }
◆ operator/=()
void TVector2::operator/= |
( |
const TVector2 & | other | ) |
|
|
inlineconstexpr |
◆ operator=()
void TVector2::operator= |
( |
const TVector2 & | other | ) |
|
|
inlineconstexpr |
◆ Set() [1/3]
void TVector2::Set |
( |
const TVector2 & | other | ) |
|
|
inlineconstexpr |
◆ Set() [2/3]
void TVector2::Set |
( |
TFLOAT | coords[2] | ) |
|
|
inlineconstexpr |
◆ Set() [3/3]
◆ VEC_NEGX
◆ VEC_NEGY
◆ VEC_POSX
◆ VEC_POSY
◆ VEC_ZERO
The documentation for this class was generated from the following files:
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Math/TVector2.h
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Math/TVector2.cpp