Bitbybit Docs
    Preparing search index...

    Class RotateByQuaternionDto<T> (Inputs.OCCT)

    A shape and a quaternion for transforms.rotateByQuaternion, which rotates the shape about the origin.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • Optionalquaternion: [number, number, number, number]

      Returns RotateByQuaternionDto<T>

    Properties

    shape: T

    The shape to rotate; it stays as it is and a rotated copy comes back.

    undefined
    
    quaternion: [number, number, number, number]

    The rotation as [x, y, z, w]; it is normalized before use, and [0, 0, 0, 1] is no rotation.

    [0, 0, 0, 1]