#include <opennurbs_ipoint.h>

Public Member Functions

 ON_2iBoundingBox ()=default
 
 ON_2iBoundingBox (const ON_2iBoundingBox &)=default
 
 ON_2iBoundingBox (const class ON_2iPoint bbox_min, const class ON_2iPoint bbox_max)
 
 ~ON_2iBoundingBox ()=default
 
bool IsSet () const
 
const ON_2iPoint Max () const
 
const ON_2iPoint Min () const
 
ON_2iBoundingBoxoperator= (const ON_2iBoundingBox &)=default
 

Public Attributes

ON_2iPoint m_max
 
ON_2iPoint m_min
 

Static Public Attributes

static const ON_2iBoundingBox Unset
 
static const ON_2iBoundingBox Zero
 

Constructor & Destructor Documentation

◆ ON_2iBoundingBox() [1/3]

ON_2iBoundingBox::ON_2iBoundingBox ( )
default

◆ ~ON_2iBoundingBox()

ON_2iBoundingBox::~ON_2iBoundingBox ( )
default

◆ ON_2iBoundingBox() [2/3]

ON_2iBoundingBox::ON_2iBoundingBox ( const ON_2iBoundingBox )
default

◆ ON_2iBoundingBox() [3/3]

ON_2iBoundingBox::ON_2iBoundingBox ( const class ON_2iPoint  bbox_min,
const class ON_2iPoint  bbox_max 
)

Member Function Documentation

◆ IsSet()

bool ON_2iBoundingBox::IsSet ( ) const
Returns
m_min.IsSet() && m_max.IsSet() && m_min.x <= m_max.x && m_min.y <= m_max.y.

◆ Max()

const ON_2iPoint ON_2iBoundingBox::Max ( ) const

◆ Min()

const ON_2iPoint ON_2iBoundingBox::Min ( ) const

◆ operator=()

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

Member Data Documentation

◆ m_max

ON_2iPoint ON_2iBoundingBox::m_max

◆ m_min

ON_2iPoint ON_2iBoundingBox::m_min

◆ Unset

const ON_2iBoundingBox ON_2iBoundingBox::Unset
static

◆ Zero

const ON_2iBoundingBox ON_2iBoundingBox::Zero
static