Game Engine 2D Platformer
Public Member Functions | Public Attributes | List of all members
Vector2D Struct Reference

#include <TinyMath.hpp>

Public Member Functions

 Vector2D ()=default
 
 Vector2D (float a, float b)
 
float & operator[] (int i)
 
const float & operator[] (int i) const
 
Vector2Doperator*= (float s)
 
Vector2Doperator/= (float s)
 
Vector2Doperator+= (const Vector2D &v)
 
Vector2Doperator-= (const Vector2D &v)
 

Public Attributes

float x
 
float y
 

Constructor & Destructor Documentation

◆ Vector2D() [1/2]

Vector2D::Vector2D ( )
default

◆ Vector2D() [2/2]

Vector2D::Vector2D ( float  a,
float  b 
)
inline

Member Function Documentation

◆ operator*=()

Vector2D& Vector2D::operator*= ( float  s)
inline

◆ operator+=()

Vector2D& Vector2D::operator+= ( const Vector2D v)
inline

◆ operator-=()

Vector2D& Vector2D::operator-= ( const Vector2D v)
inline

◆ operator/=()

Vector2D& Vector2D::operator/= ( float  s)
inline

◆ operator[]() [1/2]

float& Vector2D::operator[] ( int  i)
inline

◆ operator[]() [2/2]

const float& Vector2D::operator[] ( int  i) const
inline

Member Data Documentation

◆ x

float Vector2D::x

◆ y

float Vector2D::y

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