Function rotate2d

  • Rotate a 2d point at the specified angle around the anchor point (0,0)

    Returns

    rotated vector

    Parameters

    • vector: Vector

      vector to rotate

    • angle: number = 0

      angle of rotation in radians

    • anchor: Vector = ...

      anchor point to rotate around

    • Optional target: Vector

      optional target

    Returns Vector

Generated using TypeDoc