![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXExtentf.h>
Extent.
| FX::FXExtentf::FXExtentf | ( | ) | [inline] |
Default constructor.
| FX::FXExtentf::FXExtentf | ( | const FXExtentf & | ext | ) | [inline] |
Copy constructor.
| FX::FXExtentf::FXExtentf | ( | const FXVec2f & | lo, |
| const FXVec2f & | hi | ||
| ) | [inline] |
Initialize from two vectors.
| FX::FXExtentf::FXExtentf | ( | FXfloat | xlo, |
| FXfloat | xhi, | ||
| FXfloat | ylo, | ||
| FXfloat | yhi | ||
| ) | [inline] |
Initialize from six numbers.
| bool FX::FXExtentf::operator== | ( | const FXExtentf & | ext | ) | const [inline] |
| FXfloat FX::FXExtentf::width | ( | ) | const [inline] |
Width of box.
| FXfloat FX::FXExtentf::height | ( | ) | const [inline] |
Height of box.
| 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 | ( | FXfloat | x, |
| FXfloat | y | ||
| ) | const |
Test if box contains point x,y.
| 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.
| FXExtentf& FX::FXExtentf::include | ( | FXfloat | x, |
| FXfloat | y | ||
| ) |
Include point.
| FXExtentf& FX::FXExtentf::include | ( | const FXVec2f & | v | ) |
Include point.
| FXExtentf& FX::FXExtentf::include | ( | const FXExtentf & | ext | ) |
Include given range into extent.
| FXVec2f FX::FXExtentf::corner | ( | FXint | c | ) | const [inline] |
Get corner number 0..3.
Intersection of two boxes.
Referenced by operator!=(), operator=(), and operator==().
Referenced by operator!=(), operator=(), and operator==().
|
|