|
Visualization Library 2.1.0
A 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>
Inheritance diagram for vl::RectF: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) |
Public Member Functions inherited from vl::Rect< float > | |
| Rect (const Rect &other) | |
| Rect () | |
| Rect (float x, float y, float width, float height) | |
| float | x () const |
| float | y () const |
| float | width () const |
| float | height () const |
| float | bottom () const |
| float | left () const |
| float | top () const |
| float | right () const |
| void | setX (float x) |
| void | setY (float y) |
| void | setWidth (float w) |
| void | setHeight (float h) |
| bool | isNull () const |
| bool | isPoint () const |
| Rect | intersected (const Rect &other) const |
| Rect | united (const Rect &other) const |
| bool | operator< (const Rect &other) const |
| Defines a sort of lexicographic sorting that make possible the use of the Rect class with STL containers like std::set, std::map etc. More... | |
Additional Inherited Members | |
Protected Attributes inherited from vl::Rect< float > | |
| float | mX |
| float | mY |
| float | mWidth |
| float | mHeight |
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:
|
inline |
Definition at line 193 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< T >::mHeight, vl::Rect< T >::mWidth, vl::Rect< T >::mX, vl::Rect< T >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
|
inline |
Definition at line 203 of file Rect.hpp.
References vl::Rect< T >::mHeight, vl::Rect< T >::mWidth, vl::Rect< T >::mX, vl::Rect< T >::mY, vl::Vector2< T_Scalar >::x(), and vl::Vector2< T_Scalar >::y().
|
inline |
Definition at line 201 of file Rect.hpp.
References vl::Rect< T >::bottom(), and vl::Rect< T >::left().
Definition at line 197 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< T >::mHeight, vl::Rect< T >::mWidth, vl::Rect< T >::mX, vl::Rect< T >::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< T >::mHeight, vl::Rect< T >::mWidth, vl::Rect< T >::mX, vl::Rect< T >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
|
inline |
Definition at line 200 of file Rect.hpp.
References vl::Rect< T >::mWidth, and vl::Rect< T >::mX.
|
inline |
Definition at line 199 of file Rect.hpp.
References vl::Rect< T >::mHeight, and vl::Rect< T >::mY.
|
inline |
Definition at line 202 of file Rect.hpp.
References vl::Rect< T >::right(), and vl::Rect< T >::top().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:53.
© Copyright Michele Bosi. All rights reserved.