StarEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Friends | List of all members
star::pos Struct Reference

#include <pos.h>

Collaboration diagram for star::pos:
Collaboration graph

Public Member Functions

 pos ()
 
 pos (const vec2 &vec, lay layer=LAYER_DEF)
 
 pos (double X, double Y, lay layer=LAYER_DEF)
 
 pos (float X, float Y, lay layer=LAYER_DEF)
 
 pos (int X, int Y, lay layer=LAYER_DEF)
 
 pos (long X, long Y, lay layer=LAYER_DEF)
 
 pos (const pos &yRef)
 
 pos (pos &&yRef)
 
bool operator== (const pos &yRef) const
 
bool operator== (const vec2 &yRef) const
 
bool operator!= (const pos &yRef) const
 
bool operator!= (const vec2 &yRef) const
 
posoperator= (const pos &yRef)
 
posoperator= (const vec2 &yRef)
 
posoperator+= (const pos &yRef)
 
posoperator+= (const vec2 &yRef)
 
posoperator-= (const pos &yRef)
 
posoperator-= (const vec2 &yRef)
 
pos operator+ (const pos &yRef) const
 
pos operator+ (const vec2 &yRef) const
 
pos operator- (const pos &yRef) const
 
pos operator- (const vec2 &yRef) const
 
posoperator*= (unsigned int n)
 
posoperator*= (unsigned long n)
 
posoperator*= (int n)
 
posoperator*= (long n)
 
posoperator*= (float n)
 
posoperator*= (double n)
 
posoperator/= (unsigned int n)
 
posoperator/= (unsigned long n)
 
posoperator/= (int n)
 
posoperator/= (long n)
 
posoperator/= (float n)
 
posoperator/= (double n)
 
pos operator* (unsigned int n)
 
pos operator* (unsigned long n)
 
pos operator* (int n)
 
pos operator* (long n)
 
pos operator* (float n)
 
pos operator* (double n)
 
pos operator/ (unsigned int n)
 
pos operator/ (unsigned long n)
 
pos operator/ (int n)
 
pos operator/ (long n)
 
pos operator/ (float n)
 
pos operator/ (double n)
 
vec2 pos2D () const
 
vec3 pos3D () const
 
float length () const
 

Public Attributes

float x
 
float y
 
lay l
 

Friends

pos operator* (unsigned int n, const pos &yRef)
 
pos operator* (unsigned long n, const pos &yRef)
 
pos operator* (int n, const pos &yRef)
 
pos operator* (long n, const pos &yRef)
 
pos operator* (float n, const pos &yRef)
 
pos operator* (double n, const pos &yRef)
 
pos operator* (const vec2 &v, const pos &yRef)
 
pos operator/ (unsigned int n, const pos &yRef)
 
pos operator/ (unsigned long n, const pos &yRef)
 
pos operator/ (int n, const pos &yRef)
 
pos operator/ (long n, const pos &yRef)
 
pos operator/ (float n, const pos &yRef)
 
pos operator/ (double n, const pos &yRef)
 
pos operator/ (const vec2 &v, const pos &yRef)
 
bool operator== (const vec2 &lRef, const pos &rRef)
 
bool operator!= (const vec2 &lRef, const pos &rRef)
 

Constructor & Destructor Documentation

star::pos::pos ( )
star::pos::pos ( const vec2 &  vec,
lay  layer = LAYER_DEF 
)
star::pos::pos ( double  X,
double  Y,
lay  layer = LAYER_DEF 
)
star::pos::pos ( float  X,
float  Y,
lay  layer = LAYER_DEF 
)
star::pos::pos ( int  X,
int  Y,
lay  layer = LAYER_DEF 
)
star::pos::pos ( long  X,
long  Y,
lay  layer = LAYER_DEF 
)
star::pos::pos ( const pos yRef)
star::pos::pos ( pos &&  yRef)

Member Function Documentation

float star::pos::length ( ) const
bool star::pos::operator!= ( const pos yRef) const
bool star::pos::operator!= ( const vec2 &  yRef) const
pos star::pos::operator* ( unsigned int  n)
pos star::pos::operator* ( unsigned long  n)
pos star::pos::operator* ( int  n)
pos star::pos::operator* ( long  n)
pos star::pos::operator* ( float  n)
pos star::pos::operator* ( double  n)
pos & star::pos::operator*= ( unsigned int  n)
pos & star::pos::operator*= ( unsigned long  n)
pos & star::pos::operator*= ( int  n)
pos & star::pos::operator*= ( long  n)
pos & star::pos::operator*= ( float  n)
pos & star::pos::operator*= ( double  n)
pos star::pos::operator+ ( const pos yRef) const
pos star::pos::operator+ ( const vec2 &  yRef) const
pos & star::pos::operator+= ( const pos yRef)
pos & star::pos::operator+= ( const vec2 &  yRef)
pos star::pos::operator- ( const pos yRef) const
pos star::pos::operator- ( const vec2 &  yRef) const
pos & star::pos::operator-= ( const pos yRef)
pos & star::pos::operator-= ( const vec2 &  yRef)
pos star::pos::operator/ ( unsigned int  n)
pos star::pos::operator/ ( unsigned long  n)
pos star::pos::operator/ ( int  n)
pos star::pos::operator/ ( long  n)
pos star::pos::operator/ ( float  n)
pos star::pos::operator/ ( double  n)
pos & star::pos::operator/= ( unsigned int  n)
pos & star::pos::operator/= ( unsigned long  n)
pos & star::pos::operator/= ( int  n)
pos & star::pos::operator/= ( long  n)
pos & star::pos::operator/= ( float  n)
pos & star::pos::operator/= ( double  n)
pos & star::pos::operator= ( const pos yRef)
pos & star::pos::operator= ( const vec2 &  yRef)
bool star::pos::operator== ( const pos yRef) const
bool star::pos::operator== ( const vec2 &  yRef) const
vec2 star::pos::pos2D ( ) const
vec3 star::pos::pos3D ( ) const

Friends And Related Function Documentation

bool operator!= ( const vec2 &  lRef,
const pos rRef 
)
friend
pos operator* ( unsigned int  n,
const pos yRef 
)
friend
pos operator* ( unsigned long  n,
const pos yRef 
)
friend
pos operator* ( int  n,
const pos yRef 
)
friend
pos operator* ( long  n,
const pos yRef 
)
friend
pos operator* ( float  n,
const pos yRef 
)
friend
pos operator* ( double  n,
const pos yRef 
)
friend
pos operator* ( const vec2 &  v,
const pos yRef 
)
friend
pos operator/ ( unsigned int  n,
const pos yRef 
)
friend
pos operator/ ( unsigned long  n,
const pos yRef 
)
friend
pos operator/ ( int  n,
const pos yRef 
)
friend
pos operator/ ( long  n,
const pos yRef 
)
friend
pos operator/ ( float  n,
const pos yRef 
)
friend
pos operator/ ( double  n,
const pos yRef 
)
friend
pos operator/ ( const vec2 &  v,
const pos yRef 
)
friend
bool operator== ( const vec2 &  lRef,
const pos rRef 
)
friend

Member Data Documentation

lay star::pos::l
float star::pos::x
float star::pos::y

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