Siddhanta Parity API Documentation - v1.3.0
    Preparing search index...
    • Creates a rotation matrix that can be used to transform one coordinate system to another.

      This function verifies that the rot parameter is of the correct format: a number[3][3] array. It throws an exception if rot is not of that shape. Otherwise it creates a new RotationMatrix object based on rot.

      Parameters

      • rot: number[][]

        An array [3][3] of numbers. Defines a rotation matrix used to premultiply a 3D vector to reorient it into another coordinate system.

      Returns RotationMatrix