Raylib C++  1.0.0
Encapsulates the raylib library
Public Member Functions | Public Attributes | List of all members
raylib::Vector4< T > Struct Template Referencefinal

Struct containing a vector with 4 dimensions. More...

#include <Vector.hpp>

Collaboration diagram for raylib::Vector4< T >:
Collaboration graph

Public Member Functions

 Vector4 ()=default
 Default constructor. More...
 
 Vector4 (T x, T y, T z, T w)
 Create a Vector4. More...
 
bool operator== (const Vector4 &other) const
 Compare the x, y, z & w values of two vectors. More...
 
bool operator!= (const Vector4 &other) const
 Compare the x, y, z & w values of two vectors. More...
 

Public Attributes

x
 
y
 
z
 
w
 

Detailed Description

template<typename T>
struct raylib::Vector4< T >

Struct containing a vector with 4 dimensions.

Template Parameters
Tthe type of the vector

Constructor & Destructor Documentation

◆ Vector4() [1/2]

template<typename T >
raylib::Vector4< T >::Vector4 ( )
default

Default constructor.

Attention
Don't use this, this will result on undefined behavior

◆ Vector4() [2/2]

template<typename T >
raylib::Vector4< T >::Vector4 ( x,
y,
z,
w 
)
inline

Create a Vector4.

Parameters
xthe x value
ythe y value
zthe z value
wthe w value

Member Function Documentation

◆ operator!=()

template<typename T >
bool raylib::Vector4< T >::operator!= ( const Vector4< T > &  other) const
inline

Compare the x, y, z & w values of two vectors.

Parameters
otherthe other vector to compare
Returns
true if it's not equal, false otherwise

◆ operator==()

template<typename T >
bool raylib::Vector4< T >::operator== ( const Vector4< T > &  other) const
inline

Compare the x, y, z & w values of two vectors.

Parameters
otherthe other vector to compare
Returns
true if it's equal, false otherwise

Member Data Documentation

◆ w

template<typename T >
T raylib::Vector4< T >::w

◆ x

template<typename T >
T raylib::Vector4< T >::x

◆ y

template<typename T >
T raylib::Vector4< T >::y

◆ z

template<typename T >
T raylib::Vector4< T >::z

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