Function setSquarePoints

  • Build square points. Reuse points in results if already present.

    Parameters

    • x: number

      Left

    • y: number

      Bottom

    • length: number

      Width/height

    • results: Vec2[]

      Array of points to reuse

    • Optionaloptions: EnsurePointsOptions

      Options describing how to reuse results

    Returns number

    Number of points added/changed