Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Vector2 is an utility class for manipulating 2 dimensional vectors. More...
#include <SFML/System/Vector2.hpp>
Public Member Functions | |
| Vector2 () | |
| Default constructor. | |
| Vector2 (T X, T Y) | |
| Construct the vector from its coordinates. | |
Public Attributes | |
| T | x |
| X coordinate of the vector. | |
| T | y |
| Y coordinate of the vector. | |
Vector2 is an utility class for manipulating 2 dimensional vectors.
Template parameter defines the type of coordinates (integer, float, ...)
Definition at line 37 of file Vector2.hpp.
| sf::Vector2< T >::Vector2 | ( | ) |
Default constructor.
| sf::Vector2< T >::Vector2 | ( | T | X, |
| T | Y ) |
Construct the vector from its coordinates.
| X | : X coordinate |
| Y | : Y coordinate |
| T sf::Vector2< T >::x |
X coordinate of the vector.
Definition at line 59 of file Vector2.hpp.
| T sf::Vector2< T >::y |
Y coordinate of the vector.
Definition at line 60 of file Vector2.hpp.