Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
CVector Class Reference

#include <Vector.h>

Inheritance diagram for CVector:
Touch

Public Member Functions

 CVector ()=default
 
constexpr CVector (float xCoord, float yCoord)
 
constexpr CVector operator+ (const CVector &other) const
 
constexpr CVector operator- (const CVector &other) const
 
CVectoroperator+= (const CVector &other)
 
CVectoroperator-= (const CVector &other)
 
constexpr float scalar (const CVector &other) const
 
float length () const
 

Public Attributes

float x = 0
 
float y = 0
 

Constructor & Destructor Documentation

§ CVector() [1/2]

CVector::CVector ( )
default

§ CVector() [2/2]

constexpr CVector::CVector ( float  xCoord,
float  yCoord 
)
inline

Member Function Documentation

§ length()

float CVector::length ( ) const

§ operator+()

constexpr CVector CVector::operator+ ( const CVector other) const
inline

§ operator+=()

CVector & CVector::operator+= ( const CVector other)

§ operator-()

constexpr CVector CVector::operator- ( const CVector other) const
inline

§ operator-=()

CVector & CVector::operator-= ( const CVector other)

§ scalar()

constexpr float CVector::scalar ( const CVector other) const
inline

Member Data Documentation

§ x

float CVector::x = 0

§ y

float CVector::y = 0

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