![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXExtentd.h>
Extent.
| FX::FXExtentd::FXExtentd | ( | ) | [inline] |
Default constructor.
| FX::FXExtentd::FXExtentd | ( | const FXExtentd & | ext | ) | [inline] |
Copy constructor.
| FX::FXExtentd::FXExtentd | ( | const FXVec2d & | lo, |
| const FXVec2d & | hi | ||
| ) | [inline] |
Initialize from two vectors.
| FX::FXExtentd::FXExtentd | ( | FXdouble | xlo, |
| FXdouble | xhi, | ||
| FXdouble | ylo, | ||
| FXdouble | yhi | ||
| ) | [inline] |
Initialize from six numbers.
| bool FX::FXExtentd::operator== | ( | const FXExtentd & | ext | ) | const [inline] |
| FXdouble FX::FXExtentd::width | ( | ) | const [inline] |
Width of box.
| FXdouble FX::FXExtentd::height | ( | ) | const [inline] |
Height of box.
| 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 | ( | FXdouble | x, |
| FXdouble | y | ||
| ) | const |
Test if box contains point x,y.
| 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.
| FXExtentd& FX::FXExtentd::include | ( | FXdouble | x, |
| FXdouble | y | ||
| ) |
Include point.
| FXExtentd& FX::FXExtentd::include | ( | const FXVec2d & | v | ) |
Include point.
| FXExtentd& FX::FXExtentd::include | ( | const FXExtentd & | ext | ) |
Include given range into extent.
| FXVec2d FX::FXExtentd::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==().
|
|