TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::float2 Struct Reference

#include <gui_core/gui_base_types.h>

Public Member Functions

float & operator[] (int index)
const float & operator[] (int index) const
float2 operator- () const
float2 operator+ () const
float2 operator- (const int2 &other) const
float2 operator+ (const int2 &other) const
float2 & operator-= (const int2 &other)
float2 & operator+= (const int2 &other)
float2 operator- (const float2 &other) const
float2 operator+ (const float2 &other) const
float2 & operator-= (const float2 &other)
float2 & operator+= (const float2 &other)
float2 operator* (float other) const
float2 operator/ (float other) const
float2 & operator*= (float other)
float2 & operator/= (float other)
bool operator== (const float2 &other) const
bool operator!= (const float2 &other) const

Public Attributes

float x = 0
float y = 0

Member Function Documentation

◆ operator[]() [1/2]

float & tachyon::float2::operator[] ( int index)
inline

◆ operator[]() [2/2]

const float & tachyon::float2::operator[] ( int index) const
inline

◆ operator-() [1/3]

float2 tachyon::float2::operator- ( ) const
inline

◆ operator+() [1/3]

float2 tachyon::float2::operator+ ( ) const
inline

◆ operator-() [2/3]

float2 tachyon::float2::operator- ( const int2 & other) const
inline

◆ operator+() [2/3]

float2 tachyon::float2::operator+ ( const int2 & other) const
inline

◆ operator-=() [1/2]

float2 & tachyon::float2::operator-= ( const int2 & other)
inline

◆ operator+=() [1/2]

float2 & tachyon::float2::operator+= ( const int2 & other)
inline

◆ operator-() [3/3]

float2 tachyon::float2::operator- ( const float2 & other) const
inline

◆ operator+() [3/3]

float2 tachyon::float2::operator+ ( const float2 & other) const
inline

◆ operator-=() [2/2]

float2 & tachyon::float2::operator-= ( const float2 & other)
inline

◆ operator+=() [2/2]

float2 & tachyon::float2::operator+= ( const float2 & other)
inline

◆ operator*()

float2 tachyon::float2::operator* ( float other) const
inline

◆ operator/()

float2 tachyon::float2::operator/ ( float other) const
inline

◆ operator*=()

float2 & tachyon::float2::operator*= ( float other)
inline

◆ operator/=()

float2 & tachyon::float2::operator/= ( float other)
inline

◆ operator==()

bool tachyon::float2::operator== ( const float2 & other) const
inline

◆ operator!=()

bool tachyon::float2::operator!= ( const float2 & other) const
inline

Member Data Documentation

◆ x

float tachyon::float2::x = 0

◆ y

float tachyon::float2::y = 0

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