Public Member Functions | Public Attributes | List of all members
Point2i Struct Reference

Public Member Functions

_FORCE_INLINE_ int & operator[] (int p_idx)
 
_FORCE_INLINE_ const int & operator[] (int p_idx) const
 
Point2i operator+ (const Point2i &p_v) const
 
void operator+= (const Point2i &p_v)
 
Point2i operator- (const Point2i &p_v) const
 
void operator-= (const Point2i &p_v)
 
Point2i operator* (const Point2i &p_v1) const
 
Point2i operator* (const int &rvalue) const
 
void operator*= (const int &rvalue)
 
Point2i operator/ (const Point2i &p_v1) const
 
Point2i operator/ (const int &rvalue) const
 
void operator/= (const int &rvalue)
 
Point2i operator- () const
 
bool operator< (const Point2i &p_vec2) const
 
bool operator> (const Point2i &p_vec2) const
 
bool operator== (const Point2i &p_vec2) const
 
bool operator!= (const Point2i &p_vec2) const
 
float get_aspect () const
 
 operator String () const
 
 operator Vector2 () const
 
 Point2i (const Vector2 &p_vec2)
 
 Point2i (int p_x, int p_y)
 

Public Attributes

union {
   int   x
 
   int   width
 
}; 
 
union {
   int   y
 
   int   height
 
}; 
 

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