wgpu-matrix
    Preparing search index...

    Variable fromEuler

    fromEuler: <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
        xAngleInRadians: number,
        yAngleInRadians: number,
        zAngleInRadians: number,
        order: RotationOrder,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
            xAngleInRadians: number,
            yAngleInRadians: number,
            zAngleInRadians: number,
            order: RotationOrder,
            dst?: T,
        ): T
      • Creates a quaternion from the given euler angle x, y, z using the provided intrinsic order for the conversion.

        Type Parameters

        Parameters

        • xAngleInRadians: number

          angle to rotate around X axis in radians.

        • yAngleInRadians: number

          angle to rotate around Y axis in radians.

        • zAngleInRadians: number

          angle to rotate around Z axis in radians.

        • order: RotationOrder

          order to apply euler angles

        • Optionaldst: T

          quaternion to hold result. If not passed in a new one is created.

        Returns T

        A quaternion representing the same rotation as the euler angles applied in the given order