Class SoTransformVec3f
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.inventor.engines.SoTransformVec3f
-
- All Implemented Interfaces:
SafeDisposable
public class SoTransformVec3f extends SoEngine
Transforms a 3D vector by a 4x4 matrix. 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 outputdirection
contains the result when the matrix multiplication assumes the vector is a direction, and therefore ignores the translation part of the matrix. The outputnormalDirection
contains the normalizeddirection
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoEngineOutput
direction
(SoMFVec3f
) Vector transformed by matrix, ignoring translation.SoMFMatrix
matrix
Input transformation matrix.SoEngineOutput
normalDirection
(SoMFVec3f
) Normalized direction.SoEngineOutput
point
(SoMFVec3f
) Vector transformed by matrix.SoMFVec3f
vector
Input row vector.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoTransformVec3f()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
vector
public final SoMFVec3f vector
Input row vector.
-
matrix
public final SoMFMatrix matrix
Input transformation matrix.
-
point
public final SoEngineOutput point
(SoMFVec3f
) Vector transformed by matrix.
-
direction
public final SoEngineOutput direction
(SoMFVec3f
) Vector transformed by matrix, ignoring translation.
-
normalDirection
public final SoEngineOutput normalDirection
(SoMFVec3f
) Normalized direction.
-
-