Class SoComposeRotationFromTo

All Implemented Interfaces:
SafeDisposable

public class SoComposeRotationFromTo extends SoEngine
Composes a rotation that rotates from one vector into another. This engine takes two inputs, representing a vector before and after a rotation has been applied. As output, it produces the rotation value that would cause the first vector to transform into the other.

The input fields can have multiple values, allowing the engine to compose several rotations in parallel. Some inputs may have more values than others. In such cases, the last value of the shorter inputs will be repeated as necessary.

File format/default:

ComposeRotationFromTo {

    from 0 0 1
    to 0 0 1
}

See Also:
  • Field Details

    • from

      public final SoMFVec3f from
      Vector before the rotation.
    • to

      public final SoMFVec3f to
      Vector after the rotation.
    • rotation

      public final SoEngineOutput rotation
      ( SoMFRotation ) A rotation that transforms one vector into another.
  • Constructor Details

    • SoComposeRotationFromTo

      public SoComposeRotationFromTo()
      Default Constructor.