Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions

vl::RectF Class Reference

The RectF class represents a 2D rectangular area using float precision. More...

#include <Rect.hpp>

Inheritance diagram for vl::RectF:
vl::Rect< float >

List of all members.

Public Member Functions

 RectF ()
 RectF (float x, float y, float width, float height)
 RectF (const RectF &other)
 RectF (const Rect< float > &other)
RectFoperator= (const Rect< float > &other)
RectFoperator= (const RectF &other)
float top () const
float right () const
fvec2 bottomLeft () const
fvec2 topRight () const
void addPoint (const fvec2 &p)

Detailed Description

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.


Constructor & Destructor Documentation

vl::RectF::RectF (  ) [inline]

Definition at line 192 of file Rect.hpp.

vl::RectF::RectF ( float  x,
float  y,
float  width,
float  height 
) [inline]
vl::RectF::RectF ( const RectF other ) [inline]

Definition at line 194 of file Rect.hpp.

vl::RectF::RectF ( const Rect< float > &  other ) [inline]

Definition at line 195 of file Rect.hpp.


Member Function Documentation

RectF& vl::RectF::operator= ( const Rect< float > &  other ) [inline]
RectF& vl::RectF::operator= ( const RectF other ) [inline]
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]

Definition at line 202 of file Rect.hpp.

References right(), and top().

Referenced by addPoint().

void vl::RectF::addPoint ( const fvec2 p ) [inline]

The documentation for this class was generated from the following file:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:07.
Permission is granted to use this page to write and publish articles regarding Visualization Library.