Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Shape

Hierarchy

Index

Constructors

Properties

autoClose: boolean
currentPoint: Vector2
holes: Shape[]

Methods

  • extractPoints(divisions: number): { holes: any[]; shape: Vector2[] }
  • Parameters

    • divisions: number

    Returns { holes: any[]; shape: Vector2[] }

  • getPoints(divisions?: number): Vector2[]
  • Parameters

    • Optional divisions: number

    Returns Vector2[]

  • getPointsHoles(divisions: number): any[]
  • Parameters

    • divisions: number

    Returns any[]

  • lineTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

  • moveTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

  • setFromPoints(points: Vector2[]): void

Generated using TypeDoc