Public Member Functions | Public Attributes | List of all members
sf::Vector2< T > Class Template Reference

Vector2 is an utility class for manipulating 2 dimensional vectors. More...

#include <Vector2.hpp>

Public Member Functions

 Vector2 ()
 Default constructor. More...
 
 Vector2 (T X, T Y)
 Construct the vector from its coordinates. More...
 

Public Attributes

x
 X coordinate of the vector. More...
 
y
 Y coordinate of the vector. More...
 

Detailed Description

template<typename T>
class sf::Vector2< T >

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.

Constructor & Destructor Documentation

◆ Vector2() [1/2]

template<typename T>
Vector2::Vector2 ( )

Default constructor.

Definition at line 30 of file Vector2.inl.

◆ Vector2() [2/2]

template<typename T>
Vector2::Vector2 ( X,
Y 
)

Construct the vector from its coordinates.

Construct the color from its coordinates.

Parameters
X: X coordinate
Y: Y coordinate

Definition at line 42 of file Vector2.inl.

Member Data Documentation

◆ x

template<typename T>
T sf::Vector2< T >::x

X coordinate of the vector.

Definition at line 59 of file Vector2.hpp.

◆ y

template<typename T>
T sf::Vector2< T >::y

Y coordinate of the vector.

Definition at line 60 of file Vector2.hpp.


The documentation for this class was generated from the following files: