RLLib  0.1
Public Member Functions | Public Attributes | List of all members
rl::Vector2< T > Struct Template Reference

Structure representing a two-dimensional vector. More...

#include <Vector2.hpp>

Public Member Functions

constexpr Vector2 (T X=0, T Y=0)
 Creates a 2D vector. More...
 

Public Attributes

x
 The horizontal component of the vector.
 
y
 The vertical component of the vector.
 

Detailed Description

template<typename T>
struct rl::Vector2< T >

Structure representing a two-dimensional vector.

Template Parameters
TThe type of the vector components

Constructor & Destructor Documentation

◆ Vector2()

template<typename T>
constexpr rl::Vector2< T >::Vector2 ( X = 0,
Y = 0 
)

Creates a 2D vector.

Parameters
XThe horizontal component of the vector
YThe vertical component of the vector

The documentation for this struct was generated from the following file: