#include <Acceleration.hpp>
◆ Acceleration() [1/3]
ECS::Acceleration::Acceleration |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
explicitnoexcept |
This function is the default constructor for the Acceleration class
◆ Acceleration() [2/3]
This function is a copy constructor for the Acceleration class.
- Parameters
-
acc | The acceleration to copy. |
◆ Acceleration() [3/3]
◆ ~Acceleration()
ECS::Acceleration::~Acceleration |
( |
| ) |
|
|
overridedefaultnoexcept |
◆ getAcceleration_x()
float ECS::Acceleration::getAcceleration_x |
( |
| ) |
const |
|
noexcept |
It returns the value of the private variable _x.
- Returns
- The value of the private member variable _x.
◆ getAcceleration_y()
float ECS::Acceleration::getAcceleration_y |
( |
| ) |
const |
|
noexcept |
It returns the y value of the acceleration.
- Returns
- The acceleration in the y direction.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setAcceleration_x()
void ECS::Acceleration::setAcceleration_x |
( |
float |
x | ) |
|
|
noexcept |
Sets the acceleration in the x direction.
- Parameters
-
x | The x-coordinate of the acceleration. |
◆ setAcceleration_y()
void ECS::Acceleration::setAcceleration_y |
( |
float |
y | ) |
|
|
noexcept |
This function sets the acceleration in the y direction.
- Parameters
-
y | The y-coordinate of the acceleration. |
The documentation for this class was generated from the following files: