#include <MercuryVertex.h>
Collaboration diagram for MercuryVertex:
Public Member Functions | |
MercuryVertex () | |
MercuryVertex (const float ix, const float iy, const float iz, const float iu, const float iv) | |
const float | GetX () const |
const float | GetY () const |
const float | GetZ () const |
void | SetX (const float ix) |
void | SetY (const float iy) |
void | SetZ (const float iz) |
void | ConvertToVector3 (MercuryPoint &out) const |
void | ConvertFromVector3 (const MercuryPoint &in) |
MercuryPoint & | GetPointHandle () |
MercuryVertex & | operator+= (const MercuryVertex &other) |
MercuryVertex & | operator-= (const MercuryVertex &other) |
MercuryVertex & | operator *= (float f) |
MercuryVertex & | operator/= (float f) |
MercuryVertex | operator+ (const MercuryVertex &other) const |
MercuryVertex | operator- (const MercuryVertex &other) const |
MercuryVertex | operator * (float f) const |
MercuryVertex | operator/ (float f) const |
MercuryVertex | CrossProduct (const MercuryVertex &second) |
void | GetUV (float *uv) const |
void | SetUV (const float *uv) |
void | SetU (const float u) |
void | SetV (const float v) |
const MercuryNormal & | GetNormal () const |
void | GetNormal (MercuryNormal *&normal) |
WARNING: This will change where the pointer points to. | |
void | SetNormal (MercuryNormal normal) |
Public Attributes | |
float | m_uv [2] |
MercuryNormal | m_normal |
float | x |
float | y |
float | z |
Definition at line 12 of file MercuryVertex.h.
MercuryVertex::MercuryVertex | ( | ) |
Definition at line 9 of file MercuryVertex.cpp.
MercuryVertex::MercuryVertex | ( | const float | ix, | |
const float | iy, | |||
const float | iz, | |||
const float | iu, | |||
const float | iv | |||
) |
Definition at line 3 of file MercuryVertex.cpp.
const float MercuryVertex::GetX | ( | ) | const [inline] |
Definition at line 19 of file MercuryVertex.h.
const float MercuryVertex::GetY | ( | ) | const [inline] |
Definition at line 20 of file MercuryVertex.h.
const float MercuryVertex::GetZ | ( | ) | const [inline] |
Definition at line 21 of file MercuryVertex.h.
void MercuryVertex::SetX | ( | const float | ix | ) | [inline] |
Definition at line 22 of file MercuryVertex.h.
void MercuryVertex::SetY | ( | const float | iy | ) | [inline] |
Definition at line 23 of file MercuryVertex.h.
void MercuryVertex::SetZ | ( | const float | iz | ) | [inline] |
Definition at line 24 of file MercuryVertex.h.
void MercuryVertex::ConvertToVector3 | ( | MercuryPoint & | out | ) | const [inline] |
Definition at line 25 of file MercuryVertex.h.
void MercuryVertex::ConvertFromVector3 | ( | const MercuryPoint & | in | ) | [inline] |
Definition at line 26 of file MercuryVertex.h.
MercuryPoint& MercuryVertex::GetPointHandle | ( | ) | [inline] |
Definition at line 27 of file MercuryVertex.h.
MercuryVertex& MercuryVertex::operator+= | ( | const MercuryVertex & | other | ) | [inline] |
Definition at line 29 of file MercuryVertex.h.
MercuryVertex& MercuryVertex::operator-= | ( | const MercuryVertex & | other | ) | [inline] |
Definition at line 30 of file MercuryVertex.h.
MercuryVertex& MercuryVertex::operator *= | ( | float | f | ) | [inline] |
Definition at line 31 of file MercuryVertex.h.
MercuryVertex& MercuryVertex::operator/= | ( | float | f | ) | [inline] |
Definition at line 32 of file MercuryVertex.h.
MercuryVertex MercuryVertex::operator+ | ( | const MercuryVertex & | other | ) | const [inline] |
Definition at line 34 of file MercuryVertex.h.
MercuryVertex MercuryVertex::operator- | ( | const MercuryVertex & | other | ) | const [inline] |
Definition at line 35 of file MercuryVertex.h.
MercuryVertex MercuryVertex::operator * | ( | float | f | ) | const [inline] |
Definition at line 36 of file MercuryVertex.h.
MercuryVertex MercuryVertex::operator/ | ( | float | f | ) | const [inline] |
Definition at line 37 of file MercuryVertex.h.
MercuryVertex MercuryVertex::CrossProduct | ( | const MercuryVertex & | second | ) |
Definition at line 15 of file MercuryVertex.cpp.
void MercuryVertex::GetUV | ( | float * | uv | ) | const [inline] |
Definition at line 41 of file MercuryVertex.h.
void MercuryVertex::SetUV | ( | const float * | uv | ) | [inline] |
Definition at line 42 of file MercuryVertex.h.
void MercuryVertex::SetU | ( | const float | u | ) | [inline] |
Definition at line 43 of file MercuryVertex.h.
void MercuryVertex::SetV | ( | const float | v | ) | [inline] |
Definition at line 44 of file MercuryVertex.h.
const MercuryNormal& MercuryVertex::GetNormal | ( | ) | const [inline] |
Definition at line 45 of file MercuryVertex.h.
void MercuryVertex::GetNormal | ( | MercuryNormal *& | normal | ) | [inline] |
WARNING: This will change where the pointer points to.
Definition at line 48 of file MercuryVertex.h.
void MercuryVertex::SetNormal | ( | MercuryNormal | normal | ) | [inline] |
Definition at line 50 of file MercuryVertex.h.
float MercuryVertex::m_uv[2] |
Definition at line 56 of file MercuryVertex.h.
Definition at line 57 of file MercuryVertex.h.
float MercuryVertex::x |
Definition at line 60 of file MercuryVertex.h.
float MercuryVertex::y |
Definition at line 61 of file MercuryVertex.h.
float MercuryVertex::z |
Definition at line 62 of file MercuryVertex.h.