|
TGUI 1.x-dev
|
Public Member Functions | |
| constexpr | Vector2 ()=default |
| Default constructor. | |
| constexpr | Vector2 (T xValue, T yValue) |
| Constructor to create from X and Y values. | |
| template<typename U> | |
| constexpr | Vector2 (const Vector2< U > &vec) |
| Constructs the vector from an another Vector2 with a different type. | |
| constexpr | Vector2 (const sf::Vector2< T > &vec) |
| Copy constructor to create from an sf::Vector2. | |
| Vector2 (const char *str) | |
| Constructor to create from a string. | |
| Vector2 (String str) | |
| Constructor to create from a string. | |
| operator sf::Vector2< T > () const | |
| Converts this object into an sf::Vector2 object. | |
| constexpr Vector2 | multiplyComponents (Vector2 right) const |
| Returns the component-wise multiplication of the x and y components between *this and right. | |
Public Attributes | |
| T | x = 0 |
| X coordinate of the vector. | |
| T | y = 0 |
| Y coordinate of the vector. | |
|
inlineexplicitconstexpr |
Constructs the vector from an another Vector2 with a different type.
| vec | Vector to copy |
|
inlinenodiscardconstexpr |
Returns the component-wise multiplication of the x and y components between *this and right.
| right | Vector to multiply with |