Open Inventor Reference
SoTransformVec3f Class Reference

Transforms a 3D vector by a 4x4 matrix. More...

#include <Inventor/engines/SoTransformVec3f.h>

Inheritance diagram for SoTransformVec3f:
SoEngine SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoTransformVec3f ()
 Constructor.

Static Public Member Functions

static void initClass ()
 Initializes base engine class.

Public Attributes

Inputs
SoMFVec3f vector
 Input row vector.
SoMFMatrix matrix
 Input transformation matrix.
Outputs
SoEngineOutput point
 Vector transformed by matrix.
SoEngineOutput direction
 Vector transformed by matrix, ignoring translation.
SoEngineOutput normalDirection
 Normalized direction.

Detailed Description

This engine takes as input a three dimensional floating-point vector and a transformation matrix. The vector is assumed to be a row vector.

The engine multiplies the vector by the matrix and returns the result in the output point . The output direction contains the result when the matrix multiplication assumes the vector is a direction, and therefore ignores the translation part of the matrix. The output normalDirection contains the normalized direction

File Format/Default
TransformVec3f {
  vector 0 0 0
  matrix 1 0 0 0
        0 1 0 0
        0 0 1 0
        0 0 0 1
}
See Also
SoEngineOutput

Definition at line 100 of file SoTransformVec3f.h.


Constructor & Destructor Documentation

SoTransformVec3f::SoTransformVec3f ( )

Member Function Documentation

static void SoTransformVec3f::initClass ( ) [static]

Reimplemented from SoEngine.


Member Data Documentation


The documentation for this class was generated from the following file: