Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The RectF class represents a 2D rectangular area using float
precision.
More...
#include <Rect.hpp>
Public Member Functions | |
RectF () | |
RectF (float x, float y, float width, float height) | |
RectF (const RectF &other) | |
RectF (const Rect< float > &other) | |
RectF & | operator= (const Rect< float > &other) |
RectF & | operator= (const RectF &other) |
float | top () const |
float | right () const |
fvec2 | bottomLeft () const |
fvec2 | topRight () const |
void | addPoint (const fvec2 &p) |
The RectF class represents a 2D rectangular area using float
precision.
This class is mainly used to manipulate rectangles in real coordinates (as opposed to pixel coordinates). The RectI and RectF differ in the following way:
Definition at line 189 of file Rect.hpp.
vl::RectF::RectF | ( | float | x, |
float | y, | ||
float | width, | ||
float | height | ||
) | [inline] |
Definition at line 193 of file Rect.hpp.
References vl::Rect< float >::height(), vl::Rect< float >::mHeight, vl::Rect< float >::mWidth, vl::Rect< float >::mX, vl::Rect< float >::mY, vl::Rect< float >::width(), vl::Rect< float >::x(), and vl::Rect< float >::y().
Definition at line 197 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< float >::mHeight, vl::Rect< float >::mWidth, vl::Rect< float >::mX, vl::Rect< float >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
Definition at line 198 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< float >::mHeight, vl::Rect< float >::mWidth, vl::Rect< float >::mX, vl::Rect< float >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
float vl::RectF::top | ( | ) | const [inline] |
Reimplemented from vl::Rect< float >.
Definition at line 199 of file Rect.hpp.
References vl::Rect< float >::mHeight, and vl::Rect< float >::mY.
Referenced by topRight().
float vl::RectF::right | ( | ) | const [inline] |
Reimplemented from vl::Rect< float >.
Definition at line 200 of file Rect.hpp.
References vl::Rect< float >::mWidth, and vl::Rect< float >::mX.
Referenced by topRight().
fvec2 vl::RectF::bottomLeft | ( | ) | const [inline] |
Definition at line 201 of file Rect.hpp.
References vl::Rect< float >::bottom(), and vl::Rect< float >::left().
Referenced by addPoint().
fvec2 vl::RectF::topRight | ( | ) | const [inline] |
void vl::RectF::addPoint | ( | const fvec2 & | p ) | [inline] |
Definition at line 203 of file Rect.hpp.
References bottomLeft(), vl::Rect< float >::mHeight, vl::Rect< float >::mWidth, vl::Rect< float >::mX, vl::Rect< float >::mY, topRight(), vl::Vector2< T_Scalar >::x(), and vl::Vector2< T_Scalar >::y().