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:
    SoComposeRotation, SoDecomposeRotation, SoEngineOutput
    • Field Detail

      • from

        public final SoMFVec3f from
        Vector before the rotation.
      • to

        public final SoMFVec3f to
        Vector after the rotation.
    • Constructor Detail

      • SoComposeRotationFromTo

        public SoComposeRotationFromTo()
        Default Constructor.