FTPoint Class Reference
#include <FTPoint.h>
Detailed Description
FTPoint class is a basic 3-dimensional point or vector.
Definition at line 42 of file FTPoint.h.
Constructor & Destructor Documentation
FTPoint::FTPoint |
( |
|
) |
[inline] |
Default constructor.
Point is set to zero.
Definition at line 48 of file FTPoint.h.
Constructor.
Z coordinate is set to zero if unspecified.
- Parameters:
-
| x | First component |
| y | Second component |
| z | Third component |
Definition at line 62 of file FTPoint.h.
FTPoint::FTPoint |
( |
const FT_Vector & |
ft_vector |
) |
[inline] |
Constructor.
This converts an FT_Vector to an FTPoint
- Parameters:
-
| ft_vector | A freetype vector |
Definition at line 75 of file FTPoint.h.
Member Function Documentation
Normalise a point's coordinates.
If the coordinates are zero, the point is left untouched.
- Returns:
- A vector of norm one.
Operator += In Place Addition.
- Parameters:
-
- Returns:
- this plus point.
Definition at line 97 of file FTPoint.h.
References values.
Operator +.
- Parameters:
-
- Returns:
- this plus point.
Definition at line 112 of file FTPoint.h.
References values.
Operator -= In Place Substraction.
- Parameters:
-
- Returns:
- this minus point.
Definition at line 128 of file FTPoint.h.
References values.
Operator -.
- Parameters:
-
- Returns:
- this minus point.
Definition at line 143 of file FTPoint.h.
References values.
FTPoint FTPoint::operator* |
( |
double |
multiplier |
) |
const [inline] |
Operator * Scalar multiplication.
- Parameters:
-
- Returns:
this
multiplied by multiplier
.
Definition at line 159 of file FTPoint.h.
References values.
Operator ^ Vector product.
- Parameters:
-
- Returns:
- this vector point.
Definition at line 204 of file FTPoint.h.
References values.
FTPoint::operator const FTGL_DOUBLE * |
( |
|
) |
const [inline] |
Cast to FTGL_DOUBLE*.
Definition at line 240 of file FTPoint.h.
Friends And Related Function Documentation
Operator * Scalar multiplication.
- Parameters:
-
- Returns:
multiplier
multiplied by point
.
Definition at line 177 of file FTPoint.h.
Operator * Scalar product.
- Parameters:
-
| a | First vector. |
| b | Second vector. |
- Returns:
a.b
scalar product.
Definition at line 190 of file FTPoint.h.
Operator == Tests for equality.
- Parameters:
-
- Returns:
- true if a & b are equal
Operator != Tests for non equality.
- Parameters:
-
- Returns:
- true if a & b are not equal
The documentation for this class was generated from the following file: