GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Point2d Struct Reference

#include <VectorTools.hh>

Public Member Functions

void operator+= (const Point2d &p)
void operator+= (const Vector2d &p)
void operator-= (const Point2d &p)
void operator*= (float k)

Static Public Member Functions

static Point2d NewPoint (float x, float y)
static Point2d FromVector (const Vector2d &v)

Public Attributes

float x
float y

Friends

Point2d operator+ (const Point2d &p, const Point2d &p2)
Point2d operator+ (const Point2d &p, const Vector2d &p2)
Point2d operator* (float x, const Point2d &p)
std::ostream & operator<< (std::ostream &o, const Point2d &p)
std::istream & operator>> (std::istream &i, Point2d &p)

Member Function Documentation

◆ FromVector()

Point2d Point2d::FromVector ( const Vector2d & v)
inlinestatic
Here is the caller graph for this function:

◆ NewPoint()

Point2d Point2d::NewPoint ( float x,
float y )
inlinestatic
Here is the caller graph for this function:

◆ operator*=()

void Point2d::operator*= ( float k)
inline

◆ operator+=() [1/2]

void Point2d::operator+= ( const Point2d & p)
inline

◆ operator+=() [2/2]

void Point2d::operator+= ( const Vector2d & p)
inline

◆ operator-=()

void Point2d::operator-= ( const Point2d & p)
inline

◆ operator*

Point2d operator* ( float x,
const Point2d & p )
friend

◆ operator+ [1/2]

Point2d operator+ ( const Point2d & p,
const Point2d & p2 )
friend

◆ operator+ [2/2]

Point2d operator+ ( const Point2d & p,
const Vector2d & p2 )
friend

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const Point2d & p )
friend

◆ operator>>

std::istream & operator>> ( std::istream & i,
Point2d & p )
friend

Member Data Documentation

◆ x

float Point2d::x

◆ y

float Point2d::y

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