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 <iostream>
#include <limits>
#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< 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< 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< 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 837 of file ImathVec.h.

typedef Vec2<float> V2f

Vec2 of float.

Definition at line 834 of file ImathVec.h.

typedef Vec2<int> V2i

Vec2 of integer.

Definition at line 828 of file ImathVec.h.

typedef Vec2<int64_t> V2i64

Vec2 of int64_t.

Definition at line 831 of file ImathVec.h.

typedef Vec2<short> V2s

Vec2 of short.

Definition at line 825 of file ImathVec.h.

typedef Vec3<double> V3d

Vec3 of double.

Examples:
field3d/f3d_io.C.

Definition at line 852 of file ImathVec.h.

typedef Vec3<float> V3f

Vec3 of float.

Examples:
field3d/f3d_io.C.

Definition at line 849 of file ImathVec.h.

typedef Vec3<int> V3i

Vec3 of integer.

Examples:
field3d/f3d_io.C.

Definition at line 843 of file ImathVec.h.

typedef Vec3<int64_t> V3i64

Vec3 of int64_t.

Definition at line 846 of file ImathVec.h.

typedef Vec3<short> V3s

Vec3 of short.

Definition at line 840 of file ImathVec.h.

typedef Vec4<double> V4d

Vec4 of double.

Definition at line 867 of file ImathVec.h.

typedef Vec4<float> V4f

Vec4 of float.

Definition at line 864 of file ImathVec.h.

typedef Vec4<int> V4i

Vec4 of integer.

Definition at line 858 of file ImathVec.h.

typedef Vec4<int64_t> V4i64

Vec4 of int64_t.

Definition at line 861 of file ImathVec.h.

typedef Vec4<short> V4s

Vec4 of short.

Definition at line 855 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 2241 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 2248 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 2255 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 2216 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 2223 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 2230 of file ImathVec.h.

Variable Documentation

enum IMATH_EXPORT_ENUM InfException

Enum for the Vec4 to Vec3 conversion constructor.

Definition at line 36 of file ImathVec.h.