27 #include <Inventor/SbVec2f.h>
36 SbBox2f(
float xmin,
float ymin,
float xmax,
float ymax);
43 void setBounds(
float xmin,
float ymin,
float xmax,
float ymax);
49 void getBounds(
float & xmin,
float & ymin,
float & xmax,
float & ymax)
const;
52 const SbVec2f & getMin(
void)
const;
54 const SbVec2f & getMax(
void)
const;
57 void extendBy(
const SbVec2f & point);
58 void extendBy(
const SbBox2f & box);
60 SbBool isEmpty(
void)
const;
61 SbBool hasArea(
void)
const;
63 SbBool intersect(
const SbVec2f & point)
const;
64 SbBool intersect(
const SbBox2f & box)
const;
68 void getOrigin(
float & x0,
float & y0)
const;
69 void getSize(
float & w,
float & h)
const;
70 float getAspectRatio(
void)
const;
72 friend COIN_DLL_API
int operator ==(
const SbBox2f & b1,
const SbBox2f & b2);
73 friend COIN_DLL_API
int operator !=(
const SbBox2f & b1,
const SbBox2f & b2);
78 float width(
void)
const;
79 float height(
void)
const;
85 #endif // !COIN_SBBOX2F_H