wgpu-matrix
    Preparing search index...

    Variable fromAxisAngle

    fromAxisAngle: <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
        axis: BaseArgType,
        angleInRadians: number,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
            axis: BaseArgType,
            angleInRadians: number,
            dst?: T,
        ): T
      • Sets a quaternion from the given angle and axis, then returns it.

        Type Parameters

        Parameters

        • axis: BaseArgType

          the axis to rotate around

        • angleInRadians: number

          the angle

        • Optionaldst: T

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

        Returns T

        The quaternion that represents the given axis and angle