UT/UT_Vector2.h File Reference

#include "UT_API.h"
#include <iostream.h>
#include <limits.h>
#include "UT_Math.h"
#include "UT_Assert.h"
#include "UT_Matrix2.h"

Go to the source code of this file.

Classes

class  UT_Vector2
 2D Vector class. More...

Functions

UT_Vector2 operator+ (const UT_Vector2 &v1, const UT_Vector2 &v2)
UT_Vector2 operator- (const UT_Vector2 &v1, const UT_Vector2 &v2)
bool operator< (const UT_Vector2 &v1, const UT_Vector2 &v2)
bool operator<= (const UT_Vector2 &v1, const UT_Vector2 &v2)
bool operator> (const UT_Vector2 &v1, const UT_Vector2 &v2)
bool operator>= (const UT_Vector2 &v1, const UT_Vector2 &v2)
UT_Vector2 operator+ (const UT_Vector2 &v, fpreal scalar)
UT_Vector2 operator- (const UT_Vector2 &v, fpreal scalar)
UT_Vector2 operator* (const UT_Vector2 &v, fpreal scalar)
UT_Vector2 operator/ (const UT_Vector2 &v, fpreal scalar)
UT_Vector2 operator+ (fpreal scalar, const UT_Vector2 &v)
UT_Vector2 operator- (fpreal scalar, const UT_Vector2 &v)
UT_Vector2 operator* (fpreal scalar, const UT_Vector2 &v)
UT_Vector2 operator/ (fpreal scalar, const UT_Vector2 &v)
UT_Vector2 operator* (const UT_Vector2 &v, const UT_TMatrix2< float > &mat)
fpreal dot (const UT_Vector2 &v1, const UT_Vector2 &v2)
 The dot product.
fpreal cross (const UT_Vector2 &v1, const UT_Vector2 &v2)
 Cross product, which for 2d vectors results in a fpreal.
UT_Vector2 project (const UT_Vector2 &u, const UT_Vector2 &v)
 The orthogonal projection of a vector u onto a vector v.
fpreal distance2d (const UT_Vector2 &v1, const UT_Vector2 &v2)
UT_Vector2 operator* (const UT_Vector2 &v1, const UT_Vector2 &v2)
UT_Vector2 operator/ (const UT_Vector2 &v1, const UT_Vector2 &v2)
UT_Vector2 rowVecMult (const UT_Vector2 &v, const UT_Matrix2 &m)
UT_Vector2 colVecMult (const UT_Matrix2 &m, const UT_Vector2 &v)
UT_Vector2 operator* (const UT_Vector2 &v, const UT_Matrix2 &m)
UT_Vector2 rowVecMult (const UT_Vector2 &v, const UT_TMatrix2< float > &m)
UT_Vector2 colVecMult (const UT_TMatrix2< float > &m, const UT_Vector2 &v)


Function Documentation

UT_Vector2 colVecMult ( const UT_Matrix2 m,
const UT_Vector2 v 
) [inline]

Definition at line 430 of file UT_Vector2.h.

UT_Vector2 colVecMult ( const UT_TMatrix2< float > &  m,
const UT_Vector2 v 
) [inline]

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().

fpreal cross ( const UT_Vector2 v1,
const UT_Vector2 v2 
) [inline]

Cross product, which for 2d vectors results in a fpreal.

Definition at line 417 of file UT_Vector2.h.

fpreal distance2d ( const UT_Vector2 v1,
const UT_Vector2 v2 
) [inline]

Definition at line 439 of file UT_Vector2.h.

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

The dot product.

Definition at line 413 of file UT_Vector2.h.

UT_Vector2 operator* ( const UT_Vector2 v,
const UT_Matrix2 m 
) [inline]

Definition at line 435 of file UT_Vector2.h.

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

Definition at line 357 of file UT_Vector2.h.

UT_Vector2 operator* ( const UT_Vector2 v,
const UT_TMatrix2< float > &  mat 
) [inline]

Definition at line 435 of file UT_Vector2.h.

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

Definition at line 401 of file UT_Vector2.h.

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

Definition at line 397 of file UT_Vector2.h.

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

Definition at line 385 of file UT_Vector2.h.

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

Definition at line 381 of file UT_Vector2.h.

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

Definition at line 349 of file UT_Vector2.h.

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

Definition at line 393 of file UT_Vector2.h.

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

Definition at line 389 of file UT_Vector2.h.

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

Definition at line 353 of file UT_Vector2.h.

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

Definition at line 361 of file UT_Vector2.h.

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

Definition at line 409 of file UT_Vector2.h.

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

Definition at line 405 of file UT_Vector2.h.

bool operator< ( const UT_Vector2 v1,
const UT_Vector2 v2 
) [inline]

Definition at line 365 of file UT_Vector2.h.

bool operator<= ( const UT_Vector2 v1,
const UT_Vector2 v2 
) [inline]

Definition at line 369 of file UT_Vector2.h.

bool operator> ( const UT_Vector2 v1,
const UT_Vector2 v2 
) [inline]

Definition at line 373 of file UT_Vector2.h.

bool operator>= ( const UT_Vector2 v1,
const UT_Vector2 v2 
) [inline]

Definition at line 377 of file UT_Vector2.h.

UT_Vector2 project ( const UT_Vector2 u,
const UT_Vector2 v 
) [inline]

The orthogonal projection of a vector u onto a vector v.

Definition at line 421 of file UT_Vector2.h.

UT_Vector2 rowVecMult ( const UT_Vector2 v,
const UT_TMatrix2< float > &  m 
) [inline]

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().

Definition at line 425 of file UT_Vector2.h.

UT_Vector2 rowVecMult ( const UT_Vector2 v,
const UT_TMatrix2< float > &  m 
) [inline]

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().

Examples:
SOP/MSS_CustomBrushState.C.

Definition at line 425 of file UT_Vector2.h.


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