Ellipse2d
See source codeTable of contents
Extends Geometry2d.
class Ellipse2d extends Geometry2d {}Constructor
Constructs a new instance of the Ellipse2d class
Parameters
| Name | Description |
|---|---|
| |
Properties
area
readonly
from Geometry2d
get area(): numberbounds
readonly
from Geometry2d
get bounds(): Boxcenter
readonly
from Geometry2d
get center(): Vecconfig
config: Omit<Geometry2dOptions, 'isClosed'> & {
height: number
width: number
}debugColor
optional
from Geometry2d
debugColor?: stringedges
readonly
get edges(): Edge2d[]h
h: numberignore
optional
from Geometry2d
ignore?: booleanisClosed
from Geometry2d
isClosed: booleanisFilled
from Geometry2d
isFilled: booleanisLabel
from Geometry2d
isLabel: booleanlength
readonly
from Geometry2d
get length(): numbervertices
readonly
from Geometry2d
get vertices(): Vec[]w
w: numberMethods
distanceToLineSegment()
from Geometry2d
Parameters
Returns
numberdistanceToPoint()
from Geometry2d
distanceToPoint(point: Vec, hitInside?: boolean): numberParameters
| Name | Description |
|---|---|
| |
| |
Returns
numbergetArea()
from Geometry2d
getArea(): numbergetBounds()
getBounds(): BoxgetLength()
getLength(): numbergetSvgPathData()
getSvgPathData(first?: boolean): stringParameters
| Name | Description |
|---|---|
| |
Returns
stringgetVertices()
getVertices(): any[]hitTestLineSegment()
Parameters
Returns
booleanhitTestPoint()
from Geometry2d
hitTestPoint(point: Vec, margin?: number, hitInside?: boolean): booleanParameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
booleanisPointInBounds()
from Geometry2d
isPointInBounds(point: Vec, margin?: number): booleanParameters
| Name | Description |
|---|---|
| |
| |
Returns
booleannearestPoint()
Parameters
| Name | Description |
|---|---|
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Parameters
Returns
toSimpleSvgPath()
from Geometry2d
toSimpleSvgPath(): stringPrev
EditorNext
ErrorBoundary