#include <vector2.h>
|
| WWINLINE | Vector2 (void) |
| |
| WWINLINE | Vector2 (const Vector2 &v) |
| |
| WWINLINE | Vector2 (float x, float y) |
| |
| WWINLINE | Vector2 (const float vector[2]) |
| |
| WWINLINE Vector2 & | operator= (const Vector2 &v) |
| |
| WWINLINE void | Set (float x, float y) |
| |
| WWINLINE void | Set (const Vector2 &v) |
| |
| WWINLINE float & | operator[] (int i) |
| |
| WWINLINE const float & | operator[] (int i) const |
| |
| WWINLINE void | Normalize (void) |
| |
| WWINLINE float | Length (void) const |
| |
| WWINLINE float | Length2 (void) const |
| |
| WWINLINE Vector2 | operator- () const |
| |
| WWINLINE Vector2 | operator+ () const |
| |
| WWINLINE Vector2 & | operator+= (const Vector2 &v) |
| |
| WWINLINE Vector2 & | operator-= (const Vector2 &v) |
| |
| WWINLINE Vector2 & | operator*= (float k) |
| |
| WWINLINE Vector2 & | operator/= (float k) |
| |
| WWINLINE void | Rotate (float theta) |
| |
| WWINLINE void | Rotate (float s, float c) |
| |
| WWINLINE bool | Rotate_Towards_Vector (Vector2 &target, float max_theta, bool &positive_turn) |
| |
| WWINLINE bool | Rotate_Towards_Vector (Vector2 &target, float max_s, float max_c, bool &positive_turn) |
| |
| WWINLINE bool | Is_Valid (void) const |
| |
| WWINLINE void | Update_Min (const Vector2 &a) |
| |
| WWINLINE void | Update_Max (const Vector2 &a) |
| |
| WWINLINE void | Scale (float a, float b) |
| |
| WWINLINE void | Scale (const Vector2 &a) |
| |
| | Vector2 (void) |
| |
| | Vector2 (const Vector2 &v) |
| |
| | Vector2 (float x, float y) |
| |
| | Vector2 (const float vector[2]) |
| |
| Vector2 & | operator= (const Vector2 &v) |
| |
| void | Set (float x, float y) |
| |
| void | Set (const Vector2 &v) |
| |
| float & | operator[] (int i) |
| |
| const float & | operator[] (int i) const |
| |
| void | Normalize (void) |
| |
| float | Length (void) const |
| |
| float | Length2 (void) const |
| |
| Vector2 | operator- () const |
| |
| Vector2 | operator+ () const |
| |
| Vector2 & | operator+= (const Vector2 &v) |
| |
| Vector2 & | operator-= (const Vector2 &v) |
| |
| Vector2 & | operator*= (float k) |
| |
| Vector2 & | operator/= (float k) |
| |
| void | Rotate (float theta) |
| |
| void | Rotate (float s, float c) |
| |
| bool | Rotate_Towards_Vector (Vector2 &target, float max_theta, bool &positive_turn) |
| |
| bool | Rotate_Towards_Vector (Vector2 &target, float max_s, float max_c, bool &positive_turn) |
| |
| bool | Is_Valid (void) const |
| |
| void | Update_Min (const Vector2 &a) |
| |
| void | Update_Max (const Vector2 &a) |
| |
| void | Scale (float a, float b) |
| |
|
| static WWINLINE float | Dot_Product (const Vector2 &a, const Vector2 &b) |
| |
| static float | Perp_Dot_Product (const Vector2 &a, const Vector2 &b) |
| |
| static WWINLINE float | Distance (const Vector2 &p1, const Vector2 &p2) |
| |
| static WWINLINE float | Quick_Distance (const Vector2 &p1, const Vector2 &p2) |
| |
| static void | Lerp (const Vector2 &a, const Vector2 &b, float t, Vector2 *set_result) |
| |
| static float | Dot_Product (const Vector2 &a, const Vector2 &b) |
| |
| static float | Perp_Dot_Product (const Vector2 &a, const Vector2 &b) |
| |
| static float | Distance (const Vector2 &p1, const Vector2 &p2) |
| |
| static float | Quick_Distance (const Vector2 &p1, const Vector2 &p2) |
| |
| static void | Lerp (const Vector2 &a, const Vector2 &b, float t, Vector2 *set_result) |
| |
|
| union { | |
| |
| float X | |
| |
| float U | |
| |
| }; | | |
| |
| union { | |
| |
| float Y | |
| |
| float V | |
| |
| }; | | |
| |
| union { | |
| |
| float X | |
| |
| float U | |
| |
| }; | | |
| |
| union { | |
| |
| float Y | |
| |
| float V | |
| |
| }; | | |
| |
|
| WWINLINE friend Vector2 | operator* (const Vector2 &a, float k) |
| |
| WWINLINE friend Vector2 | operator* (float k, const Vector2 &a) |
| |
| WWINLINE friend Vector2 | operator/ (const Vector2 &a, float k) |
| |
| WWINLINE friend Vector2 | operator+ (const Vector2 &a, const Vector2 &b) |
| |
| WWINLINE friend Vector2 | operator- (const Vector2 &a, const Vector2 &b) |
| |
| WWINLINE friend float | operator* (const Vector2 &a, const Vector2 &b) |
| |
| bool | operator== (const Vector2 &a, const Vector2 &b) |
| |
| bool | operator!= (const Vector2 &a, const Vector2 &b) |
| |
| WWINLINE friend bool | Equal_Within_Epsilon (const Vector2 &a, const Vector2 &b, float epsilon) |
| |
| Vector2 | operator* (const Vector2 &a, float k) |
| |
| Vector2 | operator* (float k, const Vector2 &a) |
| |
| Vector2 | operator/ (const Vector2 &a, float k) |
| |
| Vector2 | operator+ (const Vector2 &a, const Vector2 &b) |
| |
| Vector2 | operator- (const Vector2 &a, const Vector2 &b) |
| |
| float | operator* (const Vector2 &a, const Vector2 &b) |
| |
| bool | operator== (const Vector2 &a, const Vector2 &b) |
| |
| bool | operator!= (const Vector2 &a, const Vector2 &b) |
| |
| bool | Equal_Within_Epsilon (const Vector2 &a, const Vector2 &b, float epsilon) |
| |
Definition at line 68 of file vector2.h.
◆ Vector2() [1/8]
◆ Vector2() [2/8]
◆ Vector2() [3/8]
| WWINLINE Vector2::Vector2 |
( |
float | x, |
|
|
float | y ) |
|
inline |
◆ Vector2() [4/8]
| WWINLINE Vector2::Vector2 |
( |
const float | vector[2] | ) |
|
|
inline |
◆ Vector2() [5/8]
| Vector2::Vector2 |
( |
void | | ) |
|
|
inline |
◆ Vector2() [6/8]
| Vector2::Vector2 |
( |
const Vector2 & | v | ) |
|
|
inline |
◆ Vector2() [7/8]
| Vector2::Vector2 |
( |
float | x, |
|
|
float | y ) |
|
inline |
◆ Vector2() [8/8]
| Vector2::Vector2 |
( |
const float | vector[2] | ) |
|
|
inline |
◆ Distance() [1/2]
◆ Distance() [2/2]
| static float Vector2::Distance |
( |
const Vector2 & | p1, |
|
|
const Vector2 & | p2 ) |
|
static |
◆ Dot_Product() [1/2]
◆ Dot_Product() [2/2]
| static float Vector2::Dot_Product |
( |
const Vector2 & | a, |
|
|
const Vector2 & | b ) |
|
static |
◆ Is_Valid() [1/2]
| bool Vector2::Is_Valid |
( |
void | | ) |
const |
|
inline |
◆ Is_Valid() [2/2]
| bool Vector2::Is_Valid |
( |
void | | ) |
const |
◆ Length() [1/2]
| float Vector2::Length |
( |
void | | ) |
const |
|
inline |
◆ Length() [2/2]
| float Vector2::Length |
( |
void | | ) |
const |
◆ Length2() [1/2]
| float Vector2::Length2 |
( |
void | | ) |
const |
|
inline |
◆ Length2() [2/2]
| float Vector2::Length2 |
( |
void | | ) |
const |
◆ Lerp() [1/2]
◆ Lerp() [2/2]
◆ Normalize() [1/2]
| void Vector2::Normalize |
( |
void | | ) |
|
|
inline |
◆ Normalize() [2/2]
| void Vector2::Normalize |
( |
void | | ) |
|
◆ operator*=() [1/2]
◆ operator*=() [2/2]
| Vector2 & Vector2::operator*= |
( |
float | k | ) |
|
|
inline |
◆ operator+() [1/2]
◆ operator+() [2/2]
| Vector2 Vector2::operator+ |
( |
| ) |
const |
|
inline |
◆ operator+=() [1/2]
◆ operator+=() [2/2]
◆ operator-() [1/2]
◆ operator-() [2/2]
| Vector2 Vector2::operator- |
( |
| ) |
const |
|
inline |
◆ operator-=() [1/2]
◆ operator-=() [2/2]
◆ operator/=() [1/2]
◆ operator/=() [2/2]
| Vector2 & Vector2::operator/= |
( |
float | k | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator[]() [1/4]
| WWINLINE float & Vector2::operator[] |
( |
int | i | ) |
|
|
inline |
◆ operator[]() [2/4]
| float & Vector2::operator[] |
( |
int | i | ) |
|
|
inline |
◆ operator[]() [3/4]
| WWINLINE const float & Vector2::operator[] |
( |
int | i | ) |
const |
|
inline |
◆ operator[]() [4/4]
| const float & Vector2::operator[] |
( |
int | i | ) |
const |
|
inline |
◆ Perp_Dot_Product() [1/2]
| float Vector2::Perp_Dot_Product |
( |
const Vector2 & | a, |
|
|
const Vector2 & | b ) |
|
inlinestatic |
◆ Perp_Dot_Product() [2/2]
| static float Vector2::Perp_Dot_Product |
( |
const Vector2 & | a, |
|
|
const Vector2 & | b ) |
|
static |
◆ Quick_Distance() [1/2]
| float Vector2::Quick_Distance |
( |
const Vector2 & | p1, |
|
|
const Vector2 & | p2 ) |
|
inlinestatic |
◆ Quick_Distance() [2/2]
| static float Vector2::Quick_Distance |
( |
const Vector2 & | p1, |
|
|
const Vector2 & | p2 ) |
|
static |
◆ Rotate() [1/4]
| void Vector2::Rotate |
( |
float | s, |
|
|
float | c ) |
|
inline |
◆ Rotate() [2/4]
| void Vector2::Rotate |
( |
float | s, |
|
|
float | c ) |
◆ Rotate() [3/4]
| void Vector2::Rotate |
( |
float | theta | ) |
|
|
inline |
◆ Rotate() [4/4]
| void Vector2::Rotate |
( |
float | theta | ) |
|
◆ Rotate_Towards_Vector() [1/4]
| bool Vector2::Rotate_Towards_Vector |
( |
Vector2 & | target, |
|
|
float | max_s, |
|
|
float | max_c, |
|
|
bool & | positive_turn ) |
|
inline |
◆ Rotate_Towards_Vector() [2/4]
| bool Vector2::Rotate_Towards_Vector |
( |
Vector2 & | target, |
|
|
float | max_s, |
|
|
float | max_c, |
|
|
bool & | positive_turn ) |
◆ Rotate_Towards_Vector() [3/4]
| bool Vector2::Rotate_Towards_Vector |
( |
Vector2 & | target, |
|
|
float | max_theta, |
|
|
bool & | positive_turn ) |
|
inline |
◆ Rotate_Towards_Vector() [4/4]
| bool Vector2::Rotate_Towards_Vector |
( |
Vector2 & | target, |
|
|
float | max_theta, |
|
|
bool & | positive_turn ) |
◆ Scale() [1/3]
◆ Scale() [2/3]
| void Vector2::Scale |
( |
float | a, |
|
|
float | b ) |
|
inline |
◆ Scale() [3/3]
| void Vector2::Scale |
( |
float | a, |
|
|
float | b ) |
◆ Set() [1/4]
◆ Set() [2/4]
| void Vector2::Set |
( |
const Vector2 & | v | ) |
|
|
inline |
◆ Set() [3/4]
| WWINLINE void Vector2::Set |
( |
float | x, |
|
|
float | y ) |
|
inline |
◆ Set() [4/4]
| void Vector2::Set |
( |
float | x, |
|
|
float | y ) |
|
inline |
◆ Update_Max() [1/2]
| void Vector2::Update_Max |
( |
const Vector2 & | a | ) |
|
|
inline |
◆ Update_Max() [2/2]
| void Vector2::Update_Max |
( |
const Vector2 & | a | ) |
|
◆ Update_Min() [1/2]
| void Vector2::Update_Min |
( |
const Vector2 & | a | ) |
|
|
inline |
◆ Update_Min() [2/2]
| void Vector2::Update_Min |
( |
const Vector2 & | a | ) |
|
◆ Equal_Within_Epsilon [1/2]
◆ Equal_Within_Epsilon [2/2]
◆ operator!= [1/2]
◆ operator!= [2/2]
◆ operator* [1/6]
◆ operator* [2/6]
◆ operator* [3/6]
◆ operator* [4/6]
◆ operator* [5/6]
◆ operator* [6/6]
◆ operator+ [1/2]
◆ operator+ [2/2]
◆ operator- [1/2]
◆ operator- [2/2]
◆ operator/ [1/2]
◆ operator/ [2/2]
◆ operator== [1/2]
◆ operator== [2/2]
◆ [union]
◆ [union]
◆ [union]
◆ [union]
The documentation for this class was generated from the following files: