Class: Path2D
Hierarchy
Path2D
↳
Shape2D
Constructors
Properties
Methods
Constructors
constructor
• new Path2D(points?
): Path2D
Parameters
Name | Type |
---|---|
points? | Vector2 [] |
Returns
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:14
Properties
autoClose
• autoClose: boolean
= false
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:9
Methods
getPoints
▸ getPoints(divisions
): Vector2
[]
Parameters
Name | Type |
---|---|
divisions | number |
Returns
Vector2
[]
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:20
setFromPoints
▸ setFromPoints(points
): Path2D
Parameters
Name | Type |
---|---|
points | Vector2 [] |
Returns
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:52
moveTo
▸ moveTo(x
, y
): Path2D
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:60
lineTo
▸ lineTo(x
, y
): Path2D
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:65
quadraticCurveTo
▸ quadraticCurveTo(cpX
, cpY
, x
, y
): Path2D
Parameters
Name | Type |
---|---|
cpX | number |
cpY | number |
x | number |
y | number |
Returns
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:71
bezierCurveTo
▸ bezierCurveTo(cp1X
, cp1Y
, cp2X
, cp2Y
, x
, y
): Path2D
Parameters
Name | Type |
---|---|
cp1X | number |
cp1Y | number |
cp2X | number |
cp2Y | number |
x | number |
y | number |
Returns
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:77
isIntersect
▸ isIntersect(path
): boolean
Parameters
Name | Type |
---|---|
path | Path2D |
Returns
boolean
Defined in
packages/geometry/ExtrudeGeometry/Path2D.ts:83
pointInPolygon
▸ pointInPolygon(point
, polygon
): boolean
Parameters
Name | Type |
---|---|
point | Vector2 |
polygon | Vector2 [] |
Returns
boolean