libimgdoc2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
imgdoc2::RectangleF Struct Reference

Structure defining an axis-aligned rectangle in two dimensions with floats representing the coordinates. More...

#include <types.h>

Inheritance diagram for imgdoc2::RectangleF:
imgdoc2::RectangleT< float >

Public Member Functions

 RectangleF (float x, float y, float w, float h)
 
- Public Member Functions inherited from imgdoc2::RectangleT< float >
 RectangleT ()
 Default constructor which sets all properties to zero.
 
 RectangleT (float x, float y, float w, float h)
 
bool IsPointInside (const PointT< float > &p) const
 

Additional Inherited Members

- Public Attributes inherited from imgdoc2::RectangleT< float >
float x
 The x-coordinate of the edge point of the rectangle.
 
float y
 The y-coordinate of the edge point of the rectangle.
 
float w
 The width of the rectangle.
 
float h
 The height of the rectangle.
 

Detailed Description

Structure defining an axis-aligned rectangle in two dimensions with floats representing the coordinates.

Constructor & Destructor Documentation

◆ RectangleF()

imgdoc2::RectangleF::RectangleF ( float  x,
float  y,
float  w,
float  h 
)
inline
Exceptions
std::invalid_argumentThrown when an invalid argument error condition occurs.
Parameters
xThe x-coordinate of the edge point of the rectangle.
yThe y-coordinate of the edge point of the rectangle.
wThe width of the rectangle.
hThe height of the rectangle.

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