OpenVDB
9.0.1
|
A simple vector class with three double components, similar to openvdb::math::Vec4. More...
#include <nanovdb/NanoVDB.h>
Public Types | |
using | ValueType = T |
Public Member Functions | |
Vec4 ()=default | |
Vec4 (T x) | |
Vec4 (T x, T y, T z, T w) | |
template<typename T2 > | |
Vec4 (const Vec4< T2 > &v) | |
bool | operator== (const Vec4 &rhs) const |
bool | operator!= (const Vec4 &rhs) const |
template<typename Vec4T > | |
Vec4 & | operator= (const Vec4T &rhs) |
const T & | operator[] (int i) const |
T & | operator[] (int i) |
template<typename Vec4T > | |
T | dot (const Vec4T &v) const |
T | lengthSqr () const |
T | length () const |
Vec4 | operator- () const |
Vec4 | operator* (const Vec4 &v) const |
Vec4 | operator/ (const Vec4 &v) const |
Vec4 | operator+ (const Vec4 &v) const |
Vec4 | operator- (const Vec4 &v) const |
Vec4 | operator* (const T &s) const |
Vec4 | operator/ (const T &s) const |
Vec4 & | operator+= (const Vec4 &v) |
Vec4 & | operator-= (const Vec4 &v) |
Vec4 & | operator*= (const T &s) |
Vec4 & | operator/= (const T &s) |
Vec4 & | normalize () |
Vec4 & | minComponent (const Vec4 &other) |
Perform a component-wise minimum with the other Coord. More... | |
Vec4 & | maxComponent (const Vec4 &other) |
Perform a component-wise maximum with the other Coord. More... | |
Static Public Attributes | |
static const int | SIZE = 4 |
A simple vector class with three double components, similar to openvdb::math::Vec4.
using ValueType = T |
|
default |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
Perform a component-wise maximum with the other Coord.
Perform a component-wise minimum with the other Coord.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |