CLASSES
TagsA - Z

Path2

Description

class Path2

Constructor

new Path2(x, y)

Parameters

Name Type Description
x number
y number

Members

closed : boolean

Methods

addLineTo(x, y) → Path2

Parameters

Name Type Description
x number
y number

addArcTo(midX, midY, endX, endY, numberOfSegments) → Path2

Parameters

Name Type Description
midX number
midY number
endX number
endY number

close() → Path2

length() → number

getPoints() → Vector2[]

getPointAtLengthPosition(normalizedLengthPosition) → Vector2

Parameters

Name Type Description
normalizedLengthPosition number

static StartingAt(x, y) → Path2

Parameters

Name Type Description
x number
y number