Vivid
Loading...
Searching...
No Matches
Vivid::Maths::Vec4 Struct Reference

Contains a 4D vector. More...

#include <Vec.h>

Public Member Functions

 Vec4 (float x, float y, float z, float w)
 
Vec4 operator* (float scalar)
 
Vec4 operator+ (Vec4 other)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Detailed Description

Contains a 4D vector.

Vec4 is a struct that contains a 4D vector. It contains x, y, z, and w values. This can be used for many purposes like position, color, etc. And supports many operations like addition, multiplication, etc.

Definition at line 20 of file Vec.h.

Constructor & Destructor Documentation

◆ Vec4() [1/2]

Vivid::Maths::Vec4::Vec4 ( )
inline

Definition at line 24 of file Vec.h.

◆ Vec4() [2/2]

Vivid::Maths::Vec4::Vec4 ( float  x,
float  y,
float  z,
float  w 
)
inline

Definition at line 32 of file Vec.h.

Member Function Documentation

◆ operator*()

Vec4 Vivid::Maths::Vec4::operator* ( float  scalar)
inline

Definition at line 40 of file Vec.h.

◆ operator+()

Vec4 Vivid::Maths::Vec4::operator+ ( Vec4  other)
inline

Definition at line 41 of file Vec.h.

Member Data Documentation

◆ w

float Vivid::Maths::Vec4::w

Definition at line 22 of file Vec.h.

◆ x

float Vivid::Maths::Vec4::x

Definition at line 22 of file Vec.h.

◆ y

float Vivid::Maths::Vec4::y

Definition at line 22 of file Vec.h.

◆ z

float Vivid::Maths::Vec4::z

Definition at line 22 of file Vec.h.


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