#include <opennurbs_ipoint.h>

Public Member Functions

 ON_2iPoint ()=default
 
 ON_2iPoint (const ON_2iPoint &)=default
 
 ON_2iPoint (int x, int y)
 
 ~ON_2iPoint ()=default
 
bool IsOrigin () const
 
bool IsSet () const
 
ON_2iPointoperator+= (const class ON_2iVector &)
 
ON_2iPointoperator-= (const class ON_2iVector &)
 
ON_2iPointoperator= (const ON_2iPoint &)=default
 

Static Public Member Functions

static int Compare (const ON_2iPoint &lhs, const ON_2iPoint &rhs)
 Dictionary order compare. More...
 
static const ON_2iPoint From2dex (const class ON_2dex &src)
 
static const ON_2iPoint FromVector (const class ON_2iVector &v)
 

Public Attributes

ON__INT32 x
 
ON__INT32 y
 

Static Public Attributes

static const ON_2iPoint Origin
 
static const ON_2iPoint Unset
 

Constructor & Destructor Documentation

◆ ON_2iPoint() [1/3]

ON_2iPoint::ON_2iPoint ( )
default

◆ ~ON_2iPoint()

ON_2iPoint::~ON_2iPoint ( )
default

◆ ON_2iPoint() [2/3]

ON_2iPoint::ON_2iPoint ( const ON_2iPoint )
default

◆ ON_2iPoint() [3/3]

ON_2iPoint::ON_2iPoint ( int  x,
int  y 
)

Member Function Documentation

◆ Compare()

static int ON_2iPoint::Compare ( const ON_2iPoint lhs,
const ON_2iPoint rhs 
)
static

Dictionary order compare.

◆ From2dex()

static const ON_2iPoint ON_2iPoint::From2dex ( const class ON_2dex &  src)
static

◆ FromVector()

static const ON_2iPoint ON_2iPoint::FromVector ( const class ON_2iVector v)
static

◆ IsOrigin()

bool ON_2iPoint::IsOrigin ( ) const
Returns
(0 == x && 0 == y)

◆ IsSet()

bool ON_2iPoint::IsSet ( ) const
Returns
(ON_UNSET_INT_INDEX == x || ON_UNSET_INT_INDEX ==y)

◆ operator+=()

ON_2iPoint& ON_2iPoint::operator+= ( const class ON_2iVector )

◆ operator-=()

ON_2iPoint& ON_2iPoint::operator-= ( const class ON_2iVector )

◆ operator=()

ON_2iPoint& ON_2iPoint::operator= ( const ON_2iPoint )
default

Member Data Documentation

◆ Origin

const ON_2iPoint ON_2iPoint::Origin
static

◆ Unset

const ON_2iPoint ON_2iPoint::Unset
static

◆ x

ON__INT32 ON_2iPoint::x

◆ y

ON__INT32 ON_2iPoint::y