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