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

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

#include <types.h>

Inheritance diagram for imgdoc2::RectangleD:
imgdoc2::RectangleT< double >

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

◆ RectangleD()

imgdoc2::RectangleD::RectangleD ( double  x,
double  y,
double  w,
double  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: