Night Byte
Public Member Functions | Public Attributes | List of all members
Vector2 Struct Reference

#include <Vector2.hpp>

Public Member Functions

 Vector2 (float x, float y)
 
Vector2 operator+ (const Vector2 &other) const
 
Vector2 operator- (const Vector2 &other) const
 
Vector2 operator* (float scale) const
 
Vector2 operator* (const Vector2 &other)
 
bool operator== (const Vector2 &other)
 
bool operator< (const Vector2 &other) const
 

Public Attributes

float x = 0
 
float y = 0
 

Detailed Description

Helper class that holds a x and y float value, useful for 2d positions and forces.


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