#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.
|
|
Default constructor.
Definition at line 30 of file weatherarea.cpp. |
|
||||||||||||
|
Constructor for creating a new vector.
Definition at line 32 of file weatherarea.cpp. |
|
|
Destructor.
Definition at line 34 of file weatherarea.cpp. |
|
|
Calculates the length of the vector (Pythagoras).
Definition at line 43 of file weatherarea.cpp. |
|
|
Retrieves the xComponent of the Vector.
Definition at line 36 of file weatherarea.cpp. Referenced by WeatherField::move(), and WeatherArea::write(). |
|
|
Retrieves the yComponent of the Vector.
Definition at line 40 of file weatherarea.cpp. Referenced by WeatherField::move(), and WeatherArea::write(). |
|
|
Checks if the vector is the zero-vector.
Definition at line 47 of file weatherarea.cpp. Referenced by WeatherArea::update(). |
1.4.2