#include <weatherarea.h>
Public Member Functions | |
| Vector2D () | |
| Default constructor. | |
| Vector2D (int x, int y) | |
| Constructor for creating a new vector. | |
| ~Vector2D () | |
| Destructor. | |
| int | getXComponent () const |
| Retrieves the xComponent of the Vector. | |
| int | getYComponent () const |
| Retrieves the yComponent of the Vector. | |
| double | getLength () const |
| Calculates the length of the vector (Pythagoras). | |
| bool | isZeroVector () const |
| Checks if the vector is the zero-vector. | |
Definition at line 33 of file weatherarea.h.
| Vector2D::Vector2D | ( | ) |
| Vector2D::Vector2D | ( | int | x, | |
| int | y | |||
| ) |
Constructor for creating a new vector.
| x | The xComponent | |
| y | The yComponent |
Definition at line 32 of file weatherarea.cpp.
| Vector2D::~Vector2D | ( | ) |
| int Vector2D::getXComponent | ( | ) | const |
Retrieves the xComponent of the Vector.
Definition at line 36 of file weatherarea.cpp.
Referenced by WeatherField::move(), and WeatherArea::write().
| int Vector2D::getYComponent | ( | ) | const |
Retrieves the yComponent of the Vector.
Definition at line 40 of file weatherarea.cpp.
Referenced by WeatherField::move(), and WeatherArea::write().
| double Vector2D::getLength | ( | ) | const |
Calculates the length of the vector (Pythagoras).
Definition at line 43 of file weatherarea.cpp.
| bool Vector2D::isZeroVector | ( | ) | const |
Checks if the vector is the zero-vector.
Definition at line 47 of file weatherarea.cpp.
Referenced by WeatherArea::update().
1.5.1