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

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

#include <Vector.hpp>

Inheritance diagram for raylib::Vector3< T >:
Inheritance graph
Collaboration diagram for raylib::Vector3< T >:
Collaboration graph

Public Member Functions

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

Public Attributes

x
 
y
 
z
 

Detailed Description

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

Struct containing a vector with 3 dimensions.

Template Parameters
Tthe type of the vector

Constructor & Destructor Documentation

◆ Vector3() [1/2]

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

Default constructor.

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

◆ Vector3() [2/2]

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

Create a Vector3.

Parameters
xthe x value
ythe y value
zthe z value

Member Function Documentation

◆ operator!=()

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

Compare the x, y & z 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::Vector3< T >::operator== ( const Vector3< T > &  other) const
inline

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

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

Member Data Documentation

◆ x

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

◆ y

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

◆ z

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

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