The small3d library
Tiny C++ 3D game development library for Win/MacOS/Linux/FreeBSD
Loading...
Searching...
No Matches
small3d::Vec3 Class Reference

3 component float vector More...

#include <Math.hpp>

Public Member Functions

 Vec3 (float x, float y, float z)
 
 Vec3 (float v)
 
 Vec3 (const Vec4 &vec)
 
Vec3operator+= (const Vec3 &other)
 
Vec3 operator+ (const Vec3 &other) const
 
Vec3operator-= (const Vec3 &other)
 
Vec3 operator- (const Vec3 &other) const
 
Vec3 operator* (const Vec3 &other) const
 
Vec3 operator* (const float v) const
 
Vec3 operator/ (const float v) const
 
Vec3operator/= (const float v)
 
Vec3operator= (const Vec3 &other)
 
Vec3operator+= (const float v)
 
bool operator== (const Vec3 &other) const
 
bool operator!= (const Vec3 &other) const
 
template<class Archive >
void serialize (Archive &archive)
 

Public Attributes

float x = 0.0f
 
float y = 0.0f
 
float z = 0.0f
 

Detailed Description

3 component float vector


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