![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXExtentd.h>
Public Member Functions | |
FXExtentd () | |
FXExtentd (const FXExtentd &ext) | |
FXExtentd (const FXVec2d &lo, const FXVec2d &hi) | |
FXExtentd (FXdouble xlo, FXdouble xhi, FXdouble ylo, FXdouble yhi) | |
FXExtentd & | operator= (const FXExtentd &ext) |
FXVec2d & | operator[] (FXint i) |
const FXVec2d & | operator[] (FXint i) const |
bool | operator== (const FXExtentd &ext) const |
bool | operator!= (const FXExtentd &ext) const |
FXdouble | width () const |
FXdouble | height () const |
FXdouble | longest () const |
FXdouble | shortest () const |
FXdouble | diameter () const |
FXdouble | radius () const |
FXVec2d | diagonal () const |
FXVec2d | center () const |
bool | empty () const |
bool | contains (FXdouble x, FXdouble y) const |
bool | contains (const FXVec2d &p) const |
bool | contains (const FXExtentd &ext) const |
FXExtentd & | include (FXdouble x, FXdouble y) |
FXExtentd & | include (const FXVec2d &v) |
FXExtentd & | include (const FXExtentd &ext) |
FXVec2d | corner (FXint c) const |
Public Attributes | |
FXVec2d | lower |
FXVec2d | upper |
Friends | |
bool | overlap (const FXExtentd &a, const FXExtentd &b) |
FXExtentd | unite (const FXExtentd &a, const FXExtentd &b) |
FXExtentd | intersect (const FXExtentd &a, const FXExtentd &b) |
FXStream & | operator<< (FXStream &store, const FXExtentd &ext) |
FXStream & | operator>> (FXStream &store, FXExtentd &ext) |
Extent.
|
inline |
Default constructor.
|
inline |
Copy constructor.
Initialize from two vectors.
Initialize from six numbers.
|
inline |
|
inline |
Width of box.
References FX::FXVec2d::x.
|
inline |
Height of box.
References FX::FXVec2d::y.
FXdouble FX::FXExtentd::longest | ( | ) | const |
Longest side.
FXdouble FX::FXExtentd::shortest | ( | ) | const |
shortest side
FXdouble FX::FXExtentd::diameter | ( | ) | const |
Length of diagonal.
FXdouble FX::FXExtentd::radius | ( | ) | const |
Get radius of box.
FXVec2d FX::FXExtentd::diagonal | ( | ) | const |
Compute diagonal.
FXVec2d FX::FXExtentd::center | ( | ) | const |
Get center of box.
bool FX::FXExtentd::empty | ( | ) | const |
Test if empty.
bool FX::FXExtentd::contains | ( | const FXVec2d & | p | ) | const |
Test if box contains point p.
bool FX::FXExtentd::contains | ( | const FXExtentd & | ext | ) | const |
Test if box properly contains another box.
FXVec2d FX::FXExtentd::lower |
Referenced by operator!=(), operator=(), and operator==().
FXVec2d FX::FXExtentd::upper |
Referenced by operator!=(), operator=(), and operator==().
![]() |