Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Extent. More...
#include <FXExtentd.h>
Public Member Functions | |
FXExtentd () | |
Default constructor; value is not initialized. | |
FXExtentd (const FXExtentd &ext) | |
Copy constructor. | |
FXExtentd (const FXVec2d &p) | |
Initialize with a single point. | |
FXExtentd (const FXVec2d &lo, const FXVec2d &hi) | |
Initialize from corner points. | |
FXExtentd (FXdouble x, FXdouble y) | |
Initialize with a single point. | |
FXExtentd (FXdouble xl, FXdouble xh, FXdouble yl, FXdouble yh) | |
Initialize with explicit values. | |
FXExtentd & | operator= (const FXVec2d &p) |
Assign with vector. | |
FXExtentd & | operator= (const FXExtentd &ext) |
Assignment. | |
FXExtentd & | set (const FXExtentd &ext) |
Set value from another range. | |
FXExtentd & | set (const FXVec2d &p) |
Set value from single point. | |
FXExtentd & | set (const FXVec2d &lo, const FXVec2d &hi) |
Set value from corner points. | |
FXExtentd & | set (FXdouble x, FXdouble y) |
Set value from single point. | |
FXExtentd & | set (FXdouble xl, FXdouble xh, FXdouble yl, FXdouble yh) |
Set value from explicit values. | |
FXVec2d & | operator[] (FXint i) |
Indexing with 0..1. | |
const FXVec2d & | operator[] (FXint i) const |
Indexing with 0..1. | |
FXbool | operator== (const FXExtentd &ext) const |
Comparison. | |
FXbool | operator!= (const FXExtentd &ext) const |
FXdouble | width () const |
Width of box. | |
FXdouble | height () const |
Height of box. | |
FXdouble | area () const |
Area. | |
FXdouble | longest () const |
Longest side. | |
FXdouble | shortest () const |
Shortest side. | |
FXdouble | diameter () const |
Length of diagonal. | |
FXdouble | radius () const |
Get radius of box. | |
FXVec2d | diagonal () const |
Compute diagonal. | |
FXVec2d | center () const |
Get center of box. | |
FXbool | empty () const |
Test if empty. | |
FXbool | contains (FXdouble x, FXdouble y) const |
Test if box contains point x,y. | |
FXbool | contains (const FXVec2d &p) const |
Test if box contains point p. | |
FXbool | contains (const FXExtentd &ext) const |
Test if box properly contains another box. | |
FXExtentd & | include (FXdouble x, FXdouble y) |
Include point. | |
FXExtentd & | include (const FXVec2d &v) |
Include point. | |
FXExtentd & | include (const FXExtentd &ext) |
Include given range into extent. | |
FXbool | intersect (const FXVec2d &u, const FXVec2d &v) const |
Intersect box with ray u-v. | |
FXbool | intersect (const FXVec2d &pos, const FXVec2d &dir, FXdouble hit[]) const |
Intersect box with ray pos+lambda*dir, returning true if hit. | |
FXVec2d | corner (FXint c) const |
Get corner number 0..3. | |
~FXExtentd () | |
Destructor. | |
Public Attributes | |
FXVec2d | lower |
FXVec2d | upper |
Extent.
Copyright © 1997-2022 Jeroen van der Zijp |