Group2d
Table of contents
Extends Geometry2d.
class Group2d extends Geometry2d {}
Constructs a new instance of the Group2d class
Parameters
| Name | Description |
|---|---|
| |
Properties
from
Geometry2dget area(): number
from
Geometry2dget bounds(): Box
from
Geometry2dget center(): Vec
children: Geometry2d[]
from
Geometry2ddebugColor?: string
from
Geometry2dignore?: boolean
ignoredChildren: Geometry2d[]
from
Geometry2disClosed: boolean
from
Geometry2disFilled: boolean
from
Geometry2disLabel: boolean
from
Geometry2dget length(): number
from
Geometry2dget vertices(): Vec[]
Methods
from
Geometry2ddistanceToLineSegment(A: Vec, B: Vec): number
Parameters
Returns
number
distanceToPoint(point: Vec, hitInside?: boolean): number
Parameters
| Name | Description |
|---|---|
| |
| |
Returns
number
getArea(): number
from
Geometry2dgetBounds(): Box
getLength(): number
getSvgPathData(): string
getVertices(): Vec[]
hitTestLineSegment(A: Vec, B: Vec, zoom: number): boolean
Parameters
Returns
boolean
hitTestPoint(point: Vec, margin: number, hitInside: boolean): boolean
Parameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
boolean
from
Geometry2disPointInBounds(point: Vec, margin?: number): boolean
Parameters
| Name | Description |
|---|---|
| |
| |
Returns
boolean
nearestPoint(point: Vec): Vec
Parameters
| Name | Description |
|---|---|
| |
Returns
Vec
from
Geometry2dnearestPointOnLineSegment(A: Vec, B: Vec): Vec
Parameters
Returns
Vec
toSimpleSvgPath(): string

