Monado OpenXR Runtime
Public Member Functions | Static Public Member Functions | Data Fields
Vector2 Class Reference

#include <north_star/distortion/utility_northstar.h>

Public Member Functions

 Vector2 ()
 
 Vector2 (const Vector2 &in)
 
 Vector2 (float _x, float _y)
 
constexpr Vector2operator= (const Vector2 &lhr)
 
Vector2 operator/ (const float &d)
 
Vector2 operator* (const float &d)
 
Vector2 operator- (const Vector2 &rhs)
 
Vector2 operator+ (const Vector2 &rhs)
 

Static Public Member Functions

static Vector2 zero ()
 
static Vector2 One ()
 

Data Fields

float x
 
float y
 

Constructor & Destructor Documentation

◆ Vector2() [1/3]

Vector2::Vector2 ( )
inline

◆ Vector2() [2/3]

Vector2::Vector2 ( const Vector2 in)
inline

References x, and y.

◆ Vector2() [3/3]

Vector2::Vector2 ( float  _x,
float  _y 
)
inline

Member Function Documentation

◆ One()

static Vector2 Vector2::One ( )
inlinestatic

References x, and y.

◆ operator*()

Vector2 Vector2::operator* ( const float &  d)
inline

References x, and y.

◆ operator+()

Vector2 Vector2::operator+ ( const Vector2 rhs)
inline

References x, and y.

◆ operator-()

Vector2 Vector2::operator- ( const Vector2 rhs)
inline

References x, and y.

◆ operator/()

Vector2 Vector2::operator/ ( const float &  d)
inline

References x, and y.

◆ operator=()

constexpr Vector2& Vector2::operator= ( const Vector2 lhr)
inline

References x, and y.

◆ zero()

static Vector2 Vector2::zero ( )
inlinestatic

Field Documentation

◆ x

float Vector2::x

◆ y

float Vector2::y

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