#include <fpoint.h>
Public Member Functions | |
FPoint (float x, float y) | |
FPoint (const Common::Point &pt) | |
bool | operator== (const FPoint &p) const |
bool | operator!= (const FPoint &p) const |
FPoint | operator+ (const FPoint &delta) const |
FPoint | operator- (const FPoint &delta) const |
void | operator+= (const FPoint &delta) |
void | operator-= (const FPoint &delta) |
float | normalize () |
Public Attributes | |
float | _x |
float | _y |
Floating point Point class
float Titanic::FPoint::normalize | ( | ) |
Normalises the X and Y coordinates as fractions relative to the value of the hypotenuse formed by a triangle from the origin (0,0)