|
The Game Engine
1
|
Just for more logical names for sizes of objects. More...
#include <fns.h>
Public Member Functions | |
| Size2D () | |
| Size2D (double width, double height) | |
| Size2D (const Size2D ©) | |
| Size2D (const Point2D ©) | |
| Point2D | add (Point2D pt) |
| Adds the value of the point to this. More... | |
| Point2D | sub (Point2D pt) |
| Subtracts the value of the point from this. More... | |
| Point2D | mult (double d) |
| Multiplies the values of this by i. More... | |
| Point2D | div (double d) |
| Divides the values of this by i. More... | |
| Point2D | operator+ (const Point2D &pt) const |
| Point2D | operator- (const Point2D &pt) const |
| Point2D | operator* (const double scale) const |
| Point2D | operator/ (const double scale) const |
Public Attributes | |
| double | w |
| x position More... | |
| double | h |
| y Position More... | |
Friends | |
| class | Point2D |
Just for more logical names for sizes of objects.
This class is tasked with:
Adds the value of the point to this.
| Point2D Size2D::div | ( | double | d | ) |
Divides the values of this by i.
| Point2D Size2D::mult | ( | double | d | ) |
Multiplies the values of this by i.
|
inline |
|
inline |
Subtracts the value of the point from this.