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

#include <opennurbs_fpoint.h>

Public Member Functions

 ON_2fSize ()=default
 
 ON_2fSize (const ON_2fSize &)=default
 
 ON_2fSize (float cx, float cy)
 
 ~ON_2fSize ()=default
 
bool IsSet () const
 
bool IsZero () const
 
ON_2fSizeoperator= (const ON_2fSize &)=default
 

Public Attributes

float cx = 0
 
float cy = 0
 

Static Public Attributes

static const ON_2fSize Unset
 (ON_UNSET_FLOAT,ON_UNSET_FLOAT) More...
 
static const ON_2fSize Zero
 (0,0) More...
 

Constructor & Destructor Documentation

◆ ON_2fSize() [1/3]

ON_2fSize::ON_2fSize ( )
default

◆ ~ON_2fSize()

ON_2fSize::~ON_2fSize ( )
default

◆ ON_2fSize() [2/3]

ON_2fSize::ON_2fSize ( const ON_2fSize )
default

◆ ON_2fSize() [3/3]

ON_2fSize::ON_2fSize ( float  cx,
float  cy 
)

Member Function Documentation

◆ IsSet()

bool ON_2fSize::IsSet ( ) const

Returns: true if neither cx nor cy are ON_UNSET_FLOAT

◆ IsZero()

bool ON_2fSize::IsZero ( ) const

Returns: true if both cx and cy are 0.

◆ operator=()

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

Member Data Documentation

◆ cx

float ON_2fSize::cx = 0

◆ cy

float ON_2fSize::cy = 0

◆ Unset

const ON_2fSize ON_2fSize::Unset
static

(ON_UNSET_FLOAT,ON_UNSET_FLOAT)

◆ Zero

const ON_2fSize ON_2fSize::Zero
static

(0,0)