vtdata library
Public Member Functions | Public Attributes | List of all members
IPoint2 Class Reference

Public Member Functions

 IPoint2 (int ix, int iy)
float Length () const
void Set (int ix, int iy)
IPoint2operator= (const IPoint2 &v)
IPoint2 operator+ (const IPoint2 &v) const
IPoint2 operator- (const IPoint2 &v) const
IPoint2 operator* (int s) const
IPoint2 operator* (float f) const
void operator+= (const IPoint2 &v)
void operator-= (const IPoint2 &v)
void operator*= (int s)
void operator*= (float f)
bool operator== (const IPoint2 &v) const
bool operator!= (const IPoint2 &v) const

Public Attributes

int x
int y

Detailed Description

A 2-component vector class, integer. Useful for representing discrete coordinates and sizes such as pixels and grids.