UT/UT_Vector4.h File Reference

#include "UT_API.h"
#include <math.h>
#include <limits.h>
#include <iostream.h>
#include "UT_Assert.h"
#include "UT_Math.h"
#include <vector>
#include "UT_Vector3.h"

Go to the source code of this file.

Classes

class  UT_Vector4
 4D Vector class. More...

Functions

UT_Vector4 operator* (const UT_Vector4 &v, const UT_Matrix4 &m)
UT_Vector4 operator* (const UT_Vector4 &v, const UT_DMatrix4 &m)
UT_Vector4 operator+ (const UT_Vector4 &v1, const UT_Vector4 &v2)
UT_Vector4 operator- (const UT_Vector4 &v1, const UT_Vector4 &v2)
UT_Vector4 operator+ (const UT_Vector4 &v, fpreal scalar)
UT_Vector4 operator- (const UT_Vector4 &v, fpreal scalar)
UT_Vector4 operator* (const UT_Vector4 &v, fpreal scalar)
UT_Vector4 operator/ (const UT_Vector4 &v, fpreal scalar)
UT_Vector4 operator+ (fpreal scalar, const UT_Vector4 &v)
UT_Vector4 operator- (fpreal scalar, const UT_Vector4 &v)
UT_Vector4 operator* (fpreal scalar, const UT_Vector4 &v)
UT_Vector4 operator/ (fpreal scalar, const UT_Vector4 &v)
UT_API UT_Vector3 cross (const UT_Vector4 &v1, const UT_Vector4 &v2)
UT_Vector4 operator* (const UT_Vector4 &v1, const UT_Vector4 &v2)
UT_Vector4 operator/ (const UT_Vector4 &v1, const UT_Vector4 &v2)
fpreal distance (const UT_Vector4 &v1, const UT_Vector4 &v2)
fpreal dot (const UT_Vector4 &v1, const UT_Vector4 &v2)
 The dot product between two vectors.
fpreal dot (const UT_Vector4 &v1, const UT_Vector3 &v2)
 The dot product between two vectors.
fpreal dot (const UT_Vector3 &v1, const UT_Vector4 &v2)
 The dot product between two vectors.
UT_API UT_Vector4 rowVecMult (const UT_Vector4 &v, const UT_Matrix4 &m)
UT_API UT_Vector4 rowVecMult (const UT_Vector4 &v, const UT_DMatrix4 &m)
UT_API UT_Vector4 colVecMult (const UT_Matrix4 &m, const UT_Vector4 &v)
UT_API UT_Vector4 colVecMult (const UT_DMatrix4 &m, const UT_Vector4 &v)
UT_API UT_Vector4 rowVecMult3 (const UT_Vector4 &v, const UT_Matrix4 &m)
UT_API UT_Vector4 rowVecMult3 (const UT_Vector4 &v, const UT_DMatrix4 &m)
UT_API UT_Vector4 colVecMult3 (const UT_Matrix4 &m, const UT_Vector4 &v)
UT_API UT_Vector4 colVecMult3 (const UT_DMatrix4 &m, const UT_Vector4 &v)
fpreal distance4 (const UT_Vector4 &p1, const UT_Vector4 &p2)
 Compute the distance between two points.
fpreal distance3 (const UT_Vector4 &p1, const UT_Vector4 &p2)
 Compute the distance between two points.


Function Documentation

UT_API UT_Vector4 colVecMult ( const UT_DMatrix4 m,
const UT_Vector4 v 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().

UT_API UT_Vector4 colVecMult ( const UT_Matrix4 m,
const UT_Vector4 v 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().

UT_API UT_Vector4 colVecMult3 ( const UT_DMatrix4 m,
const UT_Vector4 v 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().

UT_API UT_Vector4 colVecMult3 ( const UT_Matrix4 m,
const UT_Vector4 v 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().

UT_API UT_Vector3 cross ( const UT_Vector4 v1,
const UT_Vector4 v2 
)

Although the cross product is undefined for 4D vectors, we believe it's useful in practice to define a function that takes two 4D vectors and computes the cross-product of their first 3 components

fpreal distance ( const UT_Vector4 v1,
const UT_Vector4 v2 
) [inline]

Definition at line 601 of file UT_Vector4.h.

fpreal distance3 ( const UT_Vector4 p1,
const UT_Vector4 p2 
) [inline]

Compute the distance between two points.

Definition at line 609 of file UT_Vector4.h.

fpreal distance4 ( const UT_Vector4 p1,
const UT_Vector4 p2 
) [inline]

Compute the distance between two points.

fpreal dot ( const UT_Vector3 v1,
const UT_Vector4 v2 
) [inline]

The dot product between two vectors.

Definition at line 588 of file UT_Vector4.h.

fpreal dot ( const UT_Vector4 v1,
const UT_Vector3 v2 
) [inline]

The dot product between two vectors.

Definition at line 584 of file UT_Vector4.h.

fpreal dot ( const UT_Vector4 v1,
const UT_Vector4 v2 
) [inline]

The dot product between two vectors.

Definition at line 580 of file UT_Vector4.h.

UT_Vector4 operator* ( const UT_Vector4 v1,
const UT_Vector4 v2 
) [inline]

Definition at line 538 of file UT_Vector4.h.

UT_Vector4 operator* ( fpreal  scalar,
const UT_Vector4 v 
) [inline]

Definition at line 568 of file UT_Vector4.h.

UT_Vector4 operator* ( const UT_Vector4 v,
fpreal  scalar 
) [inline]

Definition at line 564 of file UT_Vector4.h.

UT_Vector4 operator* ( const UT_Vector4 v,
const UT_DMatrix4 m 
) [inline]

Definition at line 597 of file UT_Vector4.h.

UT_Vector4 operator* ( const UT_Vector4 v,
const UT_Matrix4 m 
) [inline]

Definition at line 593 of file UT_Vector4.h.

UT_Vector4 operator+ ( fpreal  scalar,
const UT_Vector4 v 
) [inline]

Definition at line 552 of file UT_Vector4.h.

UT_Vector4 operator+ ( const UT_Vector4 v,
fpreal  scalar 
) [inline]

Definition at line 548 of file UT_Vector4.h.

UT_Vector4 operator+ ( const UT_Vector4 v1,
const UT_Vector4 v2 
) [inline]

Definition at line 528 of file UT_Vector4.h.

UT_Vector4 operator- ( fpreal  scalar,
const UT_Vector4 v 
) [inline]

Definition at line 560 of file UT_Vector4.h.

UT_Vector4 operator- ( const UT_Vector4 v,
fpreal  scalar 
) [inline]

Definition at line 556 of file UT_Vector4.h.

UT_Vector4 operator- ( const UT_Vector4 v1,
const UT_Vector4 v2 
) [inline]

Definition at line 533 of file UT_Vector4.h.

UT_Vector4 operator/ ( const UT_Vector4 v1,
const UT_Vector4 v2 
) [inline]

Definition at line 543 of file UT_Vector4.h.

UT_Vector4 operator/ ( fpreal  scalar,
const UT_Vector4 v 
) [inline]

Definition at line 576 of file UT_Vector4.h.

UT_Vector4 operator/ ( const UT_Vector4 v,
fpreal  scalar 
) [inline]

Definition at line 572 of file UT_Vector4.h.

UT_API UT_Vector4 rowVecMult ( const UT_Vector4 v,
const UT_DMatrix4 m 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().

UT_API UT_Vector4 rowVecMult ( const UT_Vector4 v,
const UT_Matrix4 m 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().

UT_API UT_Vector4 rowVecMult3 ( const UT_Vector4 v,
const UT_DMatrix4 m 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().

UT_API UT_Vector4 rowVecMult3 ( const UT_Vector4 v,
const UT_Matrix4 m 
)

Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().


Generated on Thu May 24 00:09:05 2012 for HDK by  doxygen 1.5.9