Ellipse2d
Table of contents
Public class
Signature
class Ellipse2d extends Geometry2d {}
References
Source
packages/editor/src/lib/primitives/geometry/Ellipse2d.ts
Constructor
Public constructor
Constructs a new instance of the Ellipse2d
class
Parameters
Name | Description |
---|---|
|
|
Properties
config
Public property
Signature
config: Omit<Geometry2dOptions, 'isClosed'> & {
width: number
height: number
}
edges
Public readonly property
Signature
get edges(): Edge2d[]
References
h
Public property
Signature
h: number
w
Public property
Signature
w: number
Methods
getBounds()
Public method
Signature
getBounds(): Box
References
getVertices()
Public method
Signature
getVertices(): any[]
hitTestLineSegment()
Public method
Signature
hitTestLineSegment(A: Vec, B: Vec, zoom: number): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
References
nearestPoint()
Public method
Signature
nearestPoint(A: Vec): Vec
Parameters
Name | Description |
---|---|
|
|
Returns
Vec
References