Vivid
|
Contains a 3D vector. More...
#include <Vec.h>
Public Member Functions | |
Vec3 (float x) | |
Vec3 (float x, float y, float z) | |
Vec3 (const Vec3 &other) | |
Vec3 | operator* (float scalar) |
Vec3 | operator+ (Vec3 other) |
Vec3 | operator- (Vec3 other) |
void | operator+= (Vec3 other) |
void | operator-= (Vec3 other) |
glm::vec3 | ToGLM () |
Public Attributes | |
float | x |
float | y |
float | z |
Contains a 3D vector.
Vec3 is a struct that contains a 3D vector. It contains x, y, and z values. This can be used for many purposes like position, color, etc. And supports many operations like addition, multiplication, etc.