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