FTPoint class is a basic 3-dimensional point or vector. More...
#include <FTPoint.h>
Public Member Functions | |
FTPoint () | |
Default constructor. | |
FTPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z=0) | |
Constructor. | |
FTPoint (const FT_Vector &ft_vector) | |
Constructor. | |
FTPoint | Normalise () |
Normalise a point's coordinates. | |
FTPoint & | operator+= (const FTPoint &point) |
Operator += In Place Addition. | |
FTPoint | operator+ (const FTPoint &point) const |
Operator +. | |
FTPoint & | operator-= (const FTPoint &point) |
Operator -= In Place Substraction. | |
FTPoint | operator- (const FTPoint &point) const |
Operator -. | |
FTPoint | operator* (double multiplier) const |
Operator * Scalar multiplication. | |
FTPoint | operator^ (const FTPoint &point) |
Operator ^ Vector product. | |
operator const FTGL_DOUBLE * () const | |
Cast to FTGL_DOUBLE*. | |
void | X (FTGL_DOUBLE x) |
Setters. | |
void | Y (FTGL_DOUBLE y) |
void | Z (FTGL_DOUBLE z) |
FTGL_DOUBLE | X () const |
Getters. | |
FTGL_DOUBLE | Y () const |
FTGL_DOUBLE | Z () const |
FTGL_FLOAT | Xf () const |
FTGL_FLOAT | Yf () const |
FTGL_FLOAT | Zf () const |
Friends | |
FTPoint | operator* (double multiplier, FTPoint &point) |
Operator * Scalar multiplication. | |
double | operator* (FTPoint &a, FTPoint &b) |
Operator * Scalar product. | |
bool | operator== (const FTPoint &a, const FTPoint &b) |
Operator == Tests for equality. | |
bool | operator!= (const FTPoint &a, const FTPoint &b) |
Operator != Tests for non equality. |
FTPoint class is a basic 3-dimensional point or vector.
Definition at line 42 of file FTPoint.h.
FTPoint::FTPoint | ( | ) | [inline] |
FTPoint::FTPoint | ( | const FTGL_DOUBLE | x, | |
const FTGL_DOUBLE | y, | |||
const FTGL_DOUBLE | z = 0 | |||
) | [inline] |
FTPoint::FTPoint | ( | const FT_Vector & | ft_vector | ) | [inline] |
FTPoint FTPoint::Normalise | ( | ) |
Normalise a point's coordinates.
If the coordinates are zero, the point is left untouched.
FTPoint::operator const FTGL_DOUBLE * | ( | ) | const [inline] |
FTPoint FTPoint::operator* | ( | double | multiplier | ) | const [inline] |
void FTPoint::X | ( | FTGL_DOUBLE | x | ) | [inline] |
FTGL_DOUBLE FTPoint::X | ( | ) | const [inline] |
FTGL_FLOAT FTPoint::Xf | ( | ) | const [inline] |
Definition at line 260 of file FTPoint.h.
Referenced by FTFont::BBox().
FTGL_DOUBLE FTPoint::Y | ( | ) | const [inline] |
void FTPoint::Y | ( | FTGL_DOUBLE | y | ) | [inline] |
Definition at line 250 of file FTPoint.h.
Referenced by FTBBox::operator|=().
FTGL_FLOAT FTPoint::Yf | ( | ) | const [inline] |
Definition at line 261 of file FTPoint.h.
Referenced by FTFont::BBox().
void FTPoint::Z | ( | FTGL_DOUBLE | z | ) | [inline] |
Definition at line 251 of file FTPoint.h.
Referenced by FTBBox::operator|=().
FTGL_DOUBLE FTPoint::Z | ( | ) | const [inline] |
FTGL_FLOAT FTPoint::Zf | ( | ) | const [inline] |
Definition at line 262 of file FTPoint.h.
Referenced by FTFont::BBox().
Operator != Tests for non equality.
a | ||
b |
Operator == Tests for equality.
a | ||
b |