HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImathVec.h File Reference
#include "ImathExport.h"
#include "ImathNamespace.h"
#include "ImathTypeTraits.h"
#include "ImathMath.h"
#include "half.h"
#include <iostream>
#include <limits>
#include <cstdint>
#include <stdexcept>
+ Include dependency graph for ImathVec.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vec2< T >
 
class  Vec3< T >
 
class  Vec4< T >
 
class  Vec2< T >
 
class  Vec3< T >
 
class  Vec4< T >
 

Typedefs

typedef Vec2< halfV2h
 Vec2 of half. More...
 
typedef Vec2< short > V2s
 Vec2 of short. More...
 
typedef Vec2< intV2i
 Vec2 of integer. More...
 
typedef Vec2< int64_t > V2i64
 Vec2 of int64_t. More...
 
typedef Vec2< floatV2f
 Vec2 of float. More...
 
typedef Vec2< double > V2d
 Vec2 of double. More...
 
typedef Vec3< halfV3h
 Vec3 of half. More...
 
typedef Vec3< short > V3s
 Vec3 of short. More...
 
typedef Vec3< intV3i
 Vec3 of integer. More...
 
typedef Vec3< int64_t > V3i64
 Vec3 of int64_t. More...
 
typedef Vec3< floatV3f
 Vec3 of float. More...
 
typedef Vec3< double > V3d
 Vec3 of double. More...
 
typedef Vec4< halfV4h
 Vec4 of half. More...
 
typedef Vec4< short > V4s
 Vec4 of short. More...
 
typedef Vec4< intV4i
 Vec4 of integer. More...
 
typedef Vec4< int64_t > V4i64
 Vec4 of int64_t. More...
 
typedef Vec4< floatV4f
 Vec4 of float. More...
 
typedef Vec4< double > V4d
 Vec4 of double. More...
 

Functions

template<class T >
std::ostream & operator<< (std::ostream &s, const Vec2< T > &v)
 Stream output, as "(x y)". More...
 
template<class T >
std::ostream & operator<< (std::ostream &s, const Vec3< T > &v)
 Stream output, as "(x y z)". More...
 
template<class T >
std::ostream & operator<< (std::ostream &s, const Vec4< T > &v)
 Stream output, as "(x y z w)". More...
 
template<class T >
IMATH_HOSTDEVICE constexpr
Vec2< T > 
operator* (T a, const Vec2< T > &v) IMATH_NOEXCEPT
 Reverse multiplication: S * Vec2<T> More...
 
template<class T >
IMATH_HOSTDEVICE constexpr
Vec3< T > 
operator* (T a, const Vec3< T > &v) IMATH_NOEXCEPT
 Reverse multiplication: S * Vec3<T> More...
 
template<class T >
IMATH_HOSTDEVICE constexpr
Vec4< T > 
operator* (T a, const Vec4< T > &v) IMATH_NOEXCEPT
 Reverse multiplication: S * Vec4<T> More...
 

Variables

enum IMATH_EXPORT_ENUM InfException
 Enum for the Vec4 to Vec3 conversion constructor. More...
 

Typedef Documentation

typedef Vec2<double> V2d

Vec2 of double.

Definition at line 1049 of file ImathVec.h.

typedef Vec2<float> V2f

Vec2 of float.

Definition at line 1046 of file ImathVec.h.

typedef Vec2<half> V2h

Vec2 of half.

Definition at line 1034 of file ImathVec.h.

typedef Vec2<int> V2i

Vec2 of integer.

Definition at line 1040 of file ImathVec.h.

typedef Vec2<int64_t> V2i64

Vec2 of int64_t.

Definition at line 1043 of file ImathVec.h.

typedef Vec2<short> V2s

Vec2 of short.

Definition at line 1037 of file ImathVec.h.

typedef Vec3<double> V3d

Vec3 of double.

Examples:
field3d/f3d_io.C.

Definition at line 1067 of file ImathVec.h.

typedef Vec3<float> V3f

Vec3 of float.

Examples:
field3d/f3d_io.C.

Definition at line 1064 of file ImathVec.h.

typedef Vec3<half> V3h

Vec3 of half.

Definition at line 1052 of file ImathVec.h.

typedef Vec3<int> V3i

Vec3 of integer.

Examples:
field3d/f3d_io.C.

Definition at line 1058 of file ImathVec.h.

typedef Vec3<int64_t> V3i64

Vec3 of int64_t.

Definition at line 1061 of file ImathVec.h.

typedef Vec3<short> V3s

Vec3 of short.

Definition at line 1055 of file ImathVec.h.

typedef Vec4<double> V4d

Vec4 of double.

Definition at line 1085 of file ImathVec.h.

typedef Vec4<float> V4f

Vec4 of float.

Definition at line 1082 of file ImathVec.h.

typedef Vec4<half> V4h

Vec4 of half.

Definition at line 1070 of file ImathVec.h.

typedef Vec4<int> V4i

Vec4 of integer.

Definition at line 1076 of file ImathVec.h.

typedef Vec4<int64_t> V4i64

Vec4 of int64_t.

Definition at line 1079 of file ImathVec.h.

typedef Vec4<short> V4s

Vec4 of short.

Definition at line 1073 of file ImathVec.h.

Function Documentation

template<class T >
IMATH_HOSTDEVICE constexpr Vec2< T > operator* ( a,
const Vec2< T > &  v 
)
inline

Reverse multiplication: S * Vec2<T>

Definition at line 2648 of file ImathVec.h.

template<class T >
IMATH_HOSTDEVICE constexpr Vec3< T > operator* ( a,
const Vec3< T > &  v 
)
inline

Reverse multiplication: S * Vec3<T>

Definition at line 2655 of file ImathVec.h.

template<class T >
IMATH_HOSTDEVICE constexpr Vec4< T > operator* ( a,
const Vec4< T > &  v 
)
inline

Reverse multiplication: S * Vec4<T>

Definition at line 2662 of file ImathVec.h.

template<class T >
std::ostream & operator<< ( std::ostream &  s,
const Vec2< T > &  v 
)

Stream output, as "(x y)".

Definition at line 2623 of file ImathVec.h.

template<class T >
std::ostream & operator<< ( std::ostream &  s,
const Vec3< T > &  v 
)

Stream output, as "(x y z)".

Definition at line 2630 of file ImathVec.h.

template<class T >
std::ostream & operator<< ( std::ostream &  s,
const Vec4< T > &  v 
)

Stream output, as "(x y z w)".

Definition at line 2637 of file ImathVec.h.

Variable Documentation

enum IMATH_EXPORT_ENUM InfException

Enum for the Vec4 to Vec3 conversion constructor.

Definition at line 44 of file ImathVec.h.