Circle2d
Table of contents
Public class
Signature
class Circle2d extends Geometry2d {}
References
Source
packages/editor/src/lib/primitives/geometry/Circle2d.ts
Constructor
Public constructor
Constructs a new instance of the Circle2d
class
Parameters
Name | Description |
---|---|
|
|
Properties
config
Public property
Signature
config: Omit<Geometry2dOptions, 'isClosed'> & {
isFilled: boolean
radius: number
x?: number
y?: number
}
radius
Public property
Signature
radius: number
x
Public property
Signature
x: number
y
Public property
Signature
y: number
Methods
getBounds()
Public method
Signature
getBounds(): Box
References
getVertices()
Public method
Signature
getVertices(): Vec[]
References
hitTestLineSegment()
Public method
Signature
hitTestLineSegment(A: Vec, B: Vec, distance?: number): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
References
nearestPoint()
Public method
Signature
nearestPoint(point: Vec): Vec
Parameters
Name | Description |
---|---|
|
|
Returns
Vec
References