uicore::Point Class Reference

2D (x,y) point structure - Integer More...

#include <point.h>

+ Inheritance diagram for uicore::Point:

Public Member Functions

 Point ()
 
 Point (int x, int y)
 
 Point (const Pointx< int > &p)
 
 Point (const Vec2< int > &p)
 
- Public Member Functions inherited from uicore::Pointx< int >
 Pointx ()
 
 Pointx (int x, int y)
 
 Pointx (const Pointx< int > &p)
 
 Pointx (const Vec2< int > &p)
 
- Public Member Functions inherited from uicore::Vec2< int >
 Vec2 ()
 
 Vec2 (const int &scalar)
 
 Vec2 (const Vec3< int > &copy)
 
 Vec2 (const Vec4< int > &copy)
 
 Vec2 (const int &p1, const int &p2)
 
 Vec2 (const int *array_xy)
 
 Vec2 (const Vec2< double > &copy)
 
 Vec2 (const Vec2< float > &copy)
 
 Vec2 (const Vec2< int > &copy)
 
int angle (const Vec2< int > &vector) const
 Calculate the angle between this vector and an other vector. More...
 
int angle_line (const Vec2< int > &point) const
 Calculate the angle of the line joining this point and other point. More...
 
int angle_normed (const Vec2< int > &vector) const
 Calculate the angle between this vector and an other vector, where the vectors are unit vectors. More...
 
int distance (const Vec2< int > &vector) const
 Calculate the distance between this vector and an other vector. More...
 
int dot (const Vec2< int > &vector) const
 Dot products this vector with an other vector. More...
 
bool is_equal (const Vec2< int > &other, int epsilon) const
 Returns true if equal within the bounds of an epsilon. More...
 
int length () const
 Returns the length (magnitude) of this vector. More...
 
Vec2< int > & normalize ()
 Normalizes this vector. More...
 
bool operator!= (const Vec2< int > &vector) const
 != operator. More...
 
void operator*= (const Vec2< int > &vector)
 *= operator. More...
 
void operator*= (int value)
 *= operator. More...
 
void operator+= (const Vec2< int > &vector)
 += operator. More...
 
void operator+= (int value)
 += operator. More...
 
Vec2< int > operator- () const
 
  • operator.
More...
 
void operator-= (const Vec2< int > &vector)
 -= operator. More...
 
void operator-= (int value)
 -= operator. More...
 
void operator/= (const Vec2< int > &vector)
 /= operator. More...
 
void operator/= (int value)
 /= operator. More...
 
bool operator< (const Vec2< int > &vector) const
 < operator. More...
 
Vec2< int > & operator= (const Vec2< int > &vector)
 = operator. More...
 
bool operator== (const Vec2< int > &vector) const
 == operator. More...
 
Vec2< int > & rotate (const Vec2< int > &hotspot, int angle)
 Rotate this vector around another point. More...
 
Vec2< int > & round ()
 Rounds all components of this vector. More...
 
int round_value (float value) const
 Rounds a value for the datatype. More...
 

Additional Inherited Members

- Public Types inherited from uicore::Vec2< int >
typedef int datatype
 
- Static Public Member Functions inherited from uicore::Vec2< int >
static Pointx< int > calc_origin (Origin origin, const Sizex< int > &size)
 Returns the anchor point for the origin within the dimensions of the size structure. More...
 
static int dot (const Vec2< int > &vector_1, const Vec2< int > &vector_2)
 Dot products a vector with an other vector. More...
 
static bool is_equal (const Vec2< int > &first, const Vec2< int > &second, int epsilon)
 Returns true if equal within the bounds of an epsilon. More...
 
static Vec2< int > normalize (const Vec2< int > &vector)
 Normalizes a vector. More...
 
static Vec2< int > rotate (const Vec2< int > &vector, const Vec2< int > &hotspot, int angle)
 Rotate a vector around another point. More...
 
static Vec2< int > round (const Vec2< int > &vector)
 Rounds all components on a vector. More...
 
- Public Attributes inherited from uicore::Vec2< int >
int x
 
int y
 

Detailed Description

2D (x,y) point structure - Integer

Constructor & Destructor Documentation

uicore::Point::Point ( )
inline
uicore::Point::Point ( int  x,
int  y 
)
inline
uicore::Point::Point ( const Pointx< int > &  p)
inline
uicore::Point::Point ( const Vec2< int > &  p)
inline

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