libAlgAudio  v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlgAudio::Rect Struct Reference

#include <Utilities.hpp>

Public Member Functions

Point2D Center () const
 
bool IsFullyInside (const Rect &other)
 
Rect MoveOffset (Point2D p) const
 
 Rect ()
 
 Rect (Point2D a_, Point2D b_)
 
 Rect (Point2D a_, Size2D s)
 
Size2D Size () const
 

Public Attributes

Point2D a
 
Point2D b
 

Detailed Description

A strcuture for representing rectangles.

Constructor & Destructor Documentation

AlgAudio::Rect::Rect ( )
inline
AlgAudio::Rect::Rect ( Point2D  a_,
Point2D  b_ 
)
inline

When constructing a rectangle spanned between two points, the order of the points is not significant.

See also
Point2D
AlgAudio::Rect::Rect ( Point2D  a_,
Size2D  s 
)
inline

Member Function Documentation

Point2D AlgAudio::Rect::Center ( ) const
inline

Returns the center point of this rectangle.

See also
Point2D
bool AlgAudio::Rect::IsFullyInside ( const Rect other)
inline

Returns true iff this rectangle is fully contained within the other one.

Rect AlgAudio::Rect::MoveOffset ( Point2D  p) const
inline

Returns a new rectangle which after a translation by the vector given as a point.

Size2D AlgAudio::Rect::Size ( ) const
inline

Returns the two-dimentional Size2D of this rectangle.

See also
Size2D

Member Data Documentation

Point2D AlgAudio::Rect::a
Point2D AlgAudio::Rect::b

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