|
OpenVDB 11.0.0
|
A simple vector class with four 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) | |
| template<template< class > class Vec4T, class T2 > | |
| Vec4 (const Vec4T< T2 > &v) | |
| bool | operator== (const Vec4 &rhs) const |
| bool | operator!= (const Vec4 &rhs) const |
| template<template< class > class Vec4T, class T2 > | |
| Vec4 & | operator= (const Vec4T< T2 > &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. | |
| Vec4 & | maxComponent (const Vec4 &other) |
| Perform a component-wise maximum with the other Coord. | |
Static Public Attributes | |
| static const int | SIZE = 4 |
| static const int | size = 4 |
A simple vector class with four components, similar to openvdb::math::Vec4.
| using ValueType = T |
|
default |
|
inlineexplicit |
|
inline |
|
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 |
|
static |