Represents a rotation around an arbitrary axis.

Constructors

  • Parameters

    • axis: vec3

      the axis of the rotation

    • angle: number

      the angle of the rotation

    Returns default

Properties

angle: number

the angle of the rotation

axis: vec3

the axis of the rotation

Methods

  • Parameters

    • factor: number

      the factor to multiply the original rotation's angle with.

    Returns default

    a new rotation created from 'this' where the angle is multiplied by the given factor.

  • Parameters

    • v1: vec3

      the direction to rotate from

    • v2: vec3

      the direction to rotate to

    Returns default

    the rotation between the directions of two vectors in the form of axis & angle