|
OpenVDB 11.0.0
|
A simple vector class with three 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<template< class > class Vec3T, class T2 > | |
| Vec3 (const Vec3T< T2 > &v) | |
| 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<template< class > class Vec3T, class T2 > | |
| Vec3 & | operator= (const Vec3T< T2 > &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 Coord &ijk) const |
| Vec3 | operator- (const Coord &ijk) const |
| Vec3 | operator* (const T &s) const |
| Vec3 | operator/ (const T &s) const |
| Vec3 & | operator+= (const Vec3 &v) |
| Vec3 & | operator+= (const Coord &ijk) |
| Vec3 & | operator-= (const Vec3 &v) |
| Vec3 & | operator-= (const Coord &ijk) |
| 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. | |
| Vec3 & | maxComponent (const Vec3 &other) |
| Perform a component-wise maximum with the other Coord. | |
| ValueType | min () const |
| Return the smallest vector component. | |
| ValueType | max () const |
| Return the largest vector component. | |
| Coord | floor () const |
| Round each component if this Vec<T> up to its integer value. | |
| Coord | ceil () const |
| Round each component if this Vec<T> down to its integer value. | |
| Coord | round () const |
| Round each component if this Vec<T> to its closest integer value. | |
| T * | asPointer () |
| return a non-const raw constant pointer to array of three vector components | |
| const T * | asPointer () const |
| return a const raw constant pointer to array of three vector components | |
Static Public Attributes | |
| static const int | SIZE = 3 |
| static const int | size = 3 |
A simple vector class with three components, similar to openvdb::math::Vec3.
| using ValueType = T |
|
default |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
return a non-const raw constant pointer to array of three vector components
|
inline |
return a const raw constant pointer to array of three vector components
|
inline |
Round each component if this Vec<T> down to its integer value.
|
inline |
|
inline |
Round each component if this Vec<T> up to its integer value.
|
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 |
Round each component if this Vec<T> to its closest integer value.
|
static |
|
static |