Function setArcPoints

  • Build points for the described arc. Reuse points in results if already present.

    Parameters

    • cx: number

      Arc center

    • cy: number

      Arc center

    • radius: number

      Arc radius

    • startRadians: number

      Start point angle

    • endRadians: number

      End point angle

    • clockwise: undefined | boolean

      If points between startRadians and endRadians should be built clockwise or counter-clockwise

    • interval: number

      Interval between points, see intervalKind

    • intervalKind: ArcIntervalKind

      Unit of interval (distance = a point every interval distance, segments = arc will be split into interval segments)

    • results: Vec2[]

      Array of points to reuse

    • skipFirst: boolean = false

      Skip first point of arc (mostly useful when using arc to)

    • Optionaloptions: EnsurePointsOptions

      Options describing how to reuse results

    Returns number

    Number of points added/changed