struct ffw::Vec3
Class List > ffw :: Vec3
Public Attributes
Type | Name |
---|---|
T | x |
T | y |
T | z |
Public Functions
Type | Name |
---|---|
Vec3 () | |
Vec3 (T compx, T compy, T compz) | |
Vec3 (T val) | |
Vec3 (const Vec3< T > & vec) | |
Vec3 (const std::initializer_list< T > & list) | |
void | set (T compx, T compy, T compz) |
void | set (T val) |
void | set (const Vec3< T > & vec) |
void | set (const std::initializer_list< T > & list) |
ffw::Vec3< T > | operator- () const |
ffw::Vec3< T > & | operator= (const Vec3< T > & vec) |
ffw::Vec3< T > | operator+ (const Vec3< T > & vec) const |
ffw::Vec3< T > & | operator+= (const Vec3< T > & vec) |
ffw::Vec3< T > | operator- (const Vec3< T > & vec) const |
ffw::Vec3< T > & | operator-= (const Vec3< T > & vec) |
ffw::Vec3< T > | operator/ (const Vec3< T > & vec) const |
ffw::Vec3< T > & | operator/= (const Vec3< T > & vec) |
ffw::Vec3< T > | operator* (const Vec3< T > & vec) const |
ffw::Vec3< T > & | operator*= (const Vec3< T > & vec) |
ffw::Vec3< T > & | operator= (const T & val) |
ffw::Vec3< T > | operator+ (const T & val) const |
ffw::Vec3< T > & | operator+= (const T & val) |
ffw::Vec3< T > | operator- (const T & val) const |
ffw::Vec3< T > & | operator-= (const T & val) |
ffw::Vec3< T > | operator/ (const T & val) const |
ffw::Vec3< T > & | operator/= (const T & val) |
ffw::Vec3< T > | operator* (const T & val) const |
ffw::Vec3< T > & | operator*= (const T & val) |
bool | operator!= (const Vec3< T > & vec) const |
bool | operator== (const Vec3< T > & vec) const |
ffw::Vec3< T > & | rotateByAxis (double deg, Vec3< T > axis) |
ffw::Vec3< T > & | rotateByAxisRad (double rad, Vec3< T > axis) |
ffw::Vec3< T > & | rotateX (double deg) |
ffw::Vec3< T > & | rotateY (double deg) |
ffw::Vec3< T > & | rotateZ (double deg) |
ffw::Vec3< T > & | rotateXRad (double rad) |
ffw::Vec3< T > & | rotateYRad (double rad) |
ffw::Vec3< T > & | rotateZRad (double rad) |
ffw::Vec3< T > & | rotateByQuaternion (const ffw::Quaternion< S > & quat) |
ffw::Vec3< T > & | normalize () |
ffw::Vec3< T > & | scale (T val) |
double | length () const |
float | lengthf () const |
T | lengthSqrd () const |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
operator ffw::Vec3< S > () const | |
Vec3< T > | round () const |
Vec3< T > | floor () const |
Vec3< T > | ceil () const |
bool | operator== (const Vec3< float > & vec) const |
bool | operator== (const Vec3< double > & vec) const |
Public Attributes Documentation
variable x
T ffw::Vec3< T >::x;
variable y
T ffw::Vec3< T >::y;
variable z
T ffw::Vec3< T >::z;
Public Functions Documentation
function Vec3 (1/5)
ffw::Vec3::Vec3 ()
function Vec3 (2/5)
ffw::Vec3::Vec3 (
T compx,
T compy,
T compz
)
function Vec3 (3/5)
ffw::Vec3::Vec3 (
T val
)
function Vec3 (4/5)
ffw::Vec3::Vec3 (
const Vec3< T > & vec
)
function Vec3 (5/5)
ffw::Vec3::Vec3 (
const std::initializer_list< T > & list
)
function set (1/4)
void ffw::Vec3::set (
T compx,
T compy,
T compz
)
function set (2/4)
void ffw::Vec3::set (
T val
)
function set (3/4)
void ffw::Vec3::set (
const Vec3< T > & vec
)
function set (4/4)
void ffw::Vec3::set (
const std::initializer_list< T > & list
)
function operator- (1/3)
ffw::Vec3< T > ffw::Vec3::operator- () const
function operator= (1/2)
ffw::Vec3< T > & ffw::Vec3::operator= (
const Vec3< T > & vec
)
function operator+ (1/2)
ffw::Vec3< T > ffw::Vec3::operator+ (
const Vec3< T > & vec
) const
function operator+= (1/2)
ffw::Vec3< T > & ffw::Vec3::operator+= (
const Vec3< T > & vec
)
function operator- (2/3)
ffw::Vec3< T > ffw::Vec3::operator- (
const Vec3< T > & vec
) const
function operator-= (1/2)
ffw::Vec3< T > & ffw::Vec3::operator-= (
const Vec3< T > & vec
)
function operator/ (1/2)
ffw::Vec3< T > ffw::Vec3::operator/ (
const Vec3< T > & vec
) const
function operator/= (1/2)
ffw::Vec3< T > & ffw::Vec3::operator/= (
const Vec3< T > & vec
)
function operator* (1/2)
ffw::Vec3< T > ffw::Vec3::operator* (
const Vec3< T > & vec
) const
function operator*= (1/2)
ffw::Vec3< T > & ffw::Vec3::operator*= (
const Vec3< T > & vec
)
function operator= (2/2)
ffw::Vec3< T > & ffw::Vec3::operator= (
const T & val
)
function operator+ (2/2)
ffw::Vec3< T > ffw::Vec3::operator+ (
const T & val
) const
function operator+= (2/2)
ffw::Vec3< T > & ffw::Vec3::operator+= (
const T & val
)
function operator- (3/3)
ffw::Vec3< T > ffw::Vec3::operator- (
const T & val
) const
function operator-= (2/2)
ffw::Vec3< T > & ffw::Vec3::operator-= (
const T & val
)
function operator/ (2/2)
ffw::Vec3< T > ffw::Vec3::operator/ (
const T & val
) const
function operator/= (2/2)
ffw::Vec3< T > & ffw::Vec3::operator/= (
const T & val
)
function operator* (2/2)
ffw::Vec3< T > ffw::Vec3::operator* (
const T & val
) const
function operator*= (2/2)
ffw::Vec3< T > & ffw::Vec3::operator*= (
const T & val
)
function operator!=
bool ffw::Vec3::operator!= (
const Vec3< T > & vec
) const
function operator== (1/3)
bool ffw::Vec3::operator== (
const Vec3< T > & vec
) const
function rotateByAxis
ffw::Vec3< T > & ffw::Vec3::rotateByAxis (
double deg,
Vec3< T > axis
)
function rotateByAxisRad
ffw::Vec3< T > & ffw::Vec3::rotateByAxisRad (
double rad,
Vec3< T > axis
)
function rotateX
ffw::Vec3< T > & ffw::Vec3::rotateX (
double deg
)
function rotateY
ffw::Vec3< T > & ffw::Vec3::rotateY (
double deg
)
function rotateZ
ffw::Vec3< T > & ffw::Vec3::rotateZ (
double deg
)
function rotateXRad
ffw::Vec3< T > & ffw::Vec3::rotateXRad (
double rad
)
function rotateYRad
ffw::Vec3< T > & ffw::Vec3::rotateYRad (
double rad
)
function rotateZRad
ffw::Vec3< T > & ffw::Vec3::rotateZRad (
double rad
)
function rotateByQuaternion
ffw::Vec3< T > & ffw::Vec3::rotateByQuaternion (
const ffw::Quaternion< S > & quat
)
function normalize
ffw::Vec3< T > & ffw::Vec3::normalize ()
function scale
ffw::Vec3< T > & ffw::Vec3::scale (
T val
)
function length
double ffw::Vec3::length () const
function lengthf
float ffw::Vec3::lengthf () const
function lengthSqrd
T ffw::Vec3::lengthSqrd () const
function operator[] (1/2)
T & ffw::Vec3::operator[] (
size_t i
)
function operator[] (2/2)
const T & ffw::Vec3::operator[] (
size_t i
) const
function operator ffw::Vec3< S >
ffw::Vec3::operator ffw::Vec3< S > () const
function round
Vec3< T > ffw::Vec3::round () const
function floor
Vec3< T > ffw::Vec3::floor () const
function ceil
Vec3< T > ffw::Vec3::ceil () const
function operator== (2/3)
bool ffw::Vec3::operator== (
const Vec3< float > & vec
) const
function operator== (3/3)
bool ffw::Vec3::operator== (
const Vec3< double > & vec
) const
The documentation for this class was generated from the following file: include/ffw/graphics/vec3.h