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