Preparing search index...

    Represents a rotation around an arbitrary axis.

    Index

    Constructors

    • Parameters

      • axis: vec3

        the axis of the rotation

      • angle: number

        the angle of the rotation

      Returns AxisAngle

    Properties

    angle: number

    the angle of the rotation

    axis: vec3

    the axis of the rotation

    Methods

    • Parameters

      • v1: vec3

        the direction to rotate from

      • v2: vec3

        the direction to rotate to

      Returns AxisAngle

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

    • Parameters

      • factor: number

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

      Returns AxisAngle

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