Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
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]

CVector::CVector ( float xCoord,
float yCoord )
inlineconstexpr

Member Function Documentation

◆ length()

float CVector::length ( ) const

◆ operator+()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator-=()

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

◆ scalar()

float CVector::scalar ( const CVector & other) const
inlineconstexpr

Member Data Documentation

◆ x

float CVector::x = 0

◆ y

float CVector::y = 0

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