Rhino C++ API  8.14
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ON_2iBoundingBox Class Reference

#include <opennurbs_ipoint.h>

Public Member Functions

 ON_2iBoundingBox ()=default
 
 ON_2iBoundingBox (const class ON_2iPoint bbox_min, const class ON_2iPoint bbox_max)
 
 ON_2iBoundingBox (const ON_2iBoundingBox &)=default
 
 ~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
 (ON_2iPoint::Unset,ON_2iPoint::Unset) More...
 
static const ON_2iBoundingBox Zero
 (ON_2iPoint::Origin,ON_2iPoint::Origin); More...
 

Constructor & Destructor Documentation

◆ ON_2iBoundingBox() [1/3]

ON_2iBoundingBox::ON_2iBoundingBox ( )
default

Default construction intentionally leaves m_min and m_max uninitialized. Use something like ON_2iBoundingBox bbox(min_pt,max_pt); or ON_2iBoundingBox bbox = ON_2iBoundingBox::Unset;

◆ ~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