ScummVM API documentation
Titanic::FPoint Class Reference

#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
 

Detailed Description

Floating point Point class

Member Function Documentation

◆ normalize()

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)


The documentation for this class was generated from the following file: