|
casse-brick latest
Ce projet est réalisé dans le cadre du cours de Programmation Avancée en M1 Informatique de l'université de Strasbourg.
|
The point struct represents a point in 2D space. More...
#include <CollidingObject.h>
Public Member Functions | |
| point & | operator+= (const point &other) |
| Overloaded compound assignment operator for addition. | |
| point & | operator*= (const point &other) |
| Overloaded compound assignment operator for element-wise multiplication. | |
| const bool | operator<= (const float num) const |
| Overloaded less than or equal to comparison operator. | |
| point | operator+ (const point &other) |
| Overloaded addition operator. | |
| point | operator- (const point &other) |
| Overloaded subtraction operator. | |
| point | operator* (float f) |
| Overloaded multiplication operator. | |
Data Fields | |
| float | x |
| The x-coordinate of the point. | |
| float | y |
| The y-coordinate of the point. | |
The point struct represents a point in 2D space.
This struct provides functionality for representing and manipulating points with floating-point coordinates.
Definition at line 22 of file CollidingObject.h.
|
inline |
Overloaded multiplication operator.
| f | The scalar value to multiply by. |
Definition at line 86 of file CollidingObject.h.
Overloaded compound assignment operator for element-wise multiplication.
| other | The point to be multiplied element-wise. |
Definition at line 44 of file CollidingObject.h.
Overloaded addition operator.
| other | The point to be added. |
Definition at line 66 of file CollidingObject.h.
Overloaded compound assignment operator for addition.
| other | The point to be added. |
Definition at line 32 of file CollidingObject.h.
Overloaded subtraction operator.
| other | The point to be subtracted. |
Definition at line 76 of file CollidingObject.h.
|
inline |
Overloaded less than or equal to comparison operator.
| num | The number to compare against. |
Definition at line 56 of file CollidingObject.h.
| float point::x |
The x-coordinate of the point.
Definition at line 23 of file CollidingObject.h.
| float point::y |
The y-coordinate of the point.
Definition at line 24 of file CollidingObject.h.