![]() |
GL Studio C++ Runtime API
|
#include <gls_3d_cable.h>
Public Member Functions | |
PreciseVertex (const Vector &vector) | |
PreciseVertex (float x, float y, float z) | |
void | NearZero () |
void | Normalize () |
bool | operator== (const VertexNoColor &arg) const |
bool | operator!= (const VertexNoColor &arg) const |
![]() | |
VertexNoColor () | |
VertexNoColor (float _x, float _y, float _z) | |
float | Distance3Squared (const VertexNoColor &v) const |
float | DistanceFromLineSquared (const float startx, const float starty, const float startz, const VertexNoColor &direction) const |
float | Distance3 (const VertexNoColor &v) const |
float | Distance2Squared (const VertexNoColor &v) const |
float | Distance2 (const VertexNoColor &v) const |
VertexNoColor | operator+ (const VertexNoColor &arg) const |
VertexNoColor | operator- () const |
VertexNoColor | operator* (const float s) const |
VertexNoColor & | operator*= (const float s) |
VertexNoColor | operator/ (const float s) const |
VertexNoColor & | operator/= (const float s) |
VertexNoColor & | operator+= (const VertexNoColor &arg) |
VertexNoColor | operator- (const VertexNoColor &arg) const |
VertexNoColor & | operator-= (const VertexNoColor &arg) |
bool | operator== (const VertexNoColor &arg) const |
bool | operator!= (const VertexNoColor &arg) const |
VertexNoColor | operator* (const VertexNoColor &arg) const |
VertexNoColor | Rotate (const float angle) const |
VertexNoColor | Rotate (const VertexNoColor &orig, const float angle) const |
VertexNoColor | Rotate (const VertexNoColor &orig, const float angle, const int axis) const |
VertexNoColor | Rotate (const VertexNoColor &orig, const float angle, const Vector &r) const |
void | Normalize () |
float | Magnitude () const |
float | MagnitudeSquared () const |
VertexNoColor | CrossProduct (const VertexNoColor &w) const |
float | DotProduct (const VertexNoColor &w) const |
float | AngleToVector (const VertexNoColor &arg) const |
bool | PointInTriangle (const VertexNoColor &a, const VertexNoColor &b, const VertexNoColor &c) const |
bool | CloseTo (const VertexNoColor &arg, float tolerance=0.0001f) const |
float | DistanceFromLine (const VertexNoColor &start, const VertexNoColor &direction) const |
VertexNoColor | ProjectPointToLine (const VertexNoColor &origin, const VertexNoColor &direction) const |
Additional Inherited Members | |
![]() | |
float | x |
The X component. | |
float | y |
The Y component. | |
float | z |
The Z component. | |
The PreciseVertex class. Uses fuzzy floating point comparison rather than exact matches.
|
inline |
Constructor from Vector
vector | The vector to construct from. |
|
inline |
Constructor from three floats
x | The x component to construct from. |
y | The y component to construct from. |
z | The z component to construct from. |
|
inline |
If the values are near zero, force them to be Zero!
|
inline |
Normalizes the vector into a unit vector
|
inline |
Determines if the vertex is identical to the supplied vertex, ignoring color
arg | vertex to compare to |
|
inline |
Determines if the vertex is identical to the supplied vertex, ignoring color
arg | vertex to compare to |