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;
The SbBox2d class is a 2 dimensional box with double precision corner coordinates.
Definition: SbBox2d.h:33
The SbBox2f class is a 2 dimensional box with floating point corner coordinates.
Definition: SbBox2f.h:33
SbVec2f & getMax(void)
Definition: SbBox2f.h:55
SbBox2f(const SbBox2i32 &box)
Definition: SbBox2f.h:40
SbBox2f(const SbBox2s &box)
Definition: SbBox2f.h:39
SbBox2f(const SbBox2d &box)
Definition: SbBox2f.h:38
SbVec2f & getMin(void)
Definition: SbBox2f.h:53
The SbBox2i32 class is a 2 dimensional box with int32_t coordinates.
Definition: SbBox2i32.h:34
The SbBox2s class is a 2 dimensional box with short integer coordinates.
Definition: SbBox2s.h:34
int operator==(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.cpp:432
int operator!=(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.cpp:443
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36