Rhino C++ API
8.10
|
#include <opennurbs_point.h>
Public Member Functions | |
ON_2dSize ()=default | |
ON_2dSize (const ON_2dSize &)=default | |
ON_2dSize (double cx, double cy) | |
~ON_2dSize ()=default | |
bool | IsSet () const |
bool | IsZero () const |
ON_2dSize & | operator= (const ON_2dSize &)=default |
Static Public Member Functions | |
static int | Compare (const ON_2dSize &lhs, const ON_2dSize &rhs) |
static int | ComparePointer (const ON_2dSize *lhs, const ON_2dSize *rhs) |
Public Attributes | |
double | cx |
double | cy |
Static Public Attributes | |
static const ON_2dSize | Unset |
(ON_UNSET_DOUBLE,ON_UNSET_DOUBLE) More... | |
static const ON_2dSize | Zero |
(0.0,0.0) More... | |
Class ON_2dSize
|
default |
Default construction intentionally leaves x and y uninitialized. Use something like ON_2dSize pt(1.0,2.0); or ON_2dSize pt = ON_2dSize::Zero; when you need an initialized ON_2dSize.
|
default |
|
default |
ON_2dSize::ON_2dSize | ( | double | cx, |
double | cy | ||
) |
Dictionary compare. Returns: -1: lhs < rhs 0: lsh == rsh +1: lhs > rhs
Dictionary compare. Returns: -1: lhs < rhs 0: lsh == rsh +1: lhs > rhs
bool ON_2dSize::IsSet | ( | ) | const |
Returns: true if neither cx nor cy are ON_UNSET_DOUBLE.
bool ON_2dSize::IsZero | ( | ) | const |
Returns: true if both cx and cy are 0.0
double ON_2dSize::cx |
double ON_2dSize::cy |
|
static |
(ON_UNSET_DOUBLE,ON_UNSET_DOUBLE)
|
static |
(0.0,0.0)