Table of contents

Public class

Signature
class Ellipse2d extends Geometry2d {}
References

Geometry2d

Source

packages/editor/src/lib/primitives/geometry/Ellipse2d.ts


Constructor

Public constructor

Constructs a new instance of the Ellipse2d class

Parameters
NameDescription

config

Omit<Geometry2dOptions, 'isClosed'> & {
  width: number
  height: number
}

Properties


config

Public property

Signature
config: Omit<Geometry2dOptions, 'isClosed'> & {
  width: number
  height: number
}

edges

Public readonly property

Signature
get edges(): Edge2d[]
References

Edge2d


h

Public property

Signature
h: number

w

Public property

Signature
w: number

Methods

getBounds()

Public method

Signature
getBounds(): Box
References

Box


getVertices()

Public method

Signature
getVertices(): any[]

hitTestLineSegment()

Public method

Signature
hitTestLineSegment(A: Vec, B: Vec, zoom: number): boolean
Parameters
NameDescription

A

Vec

B

Vec

zoom

number
Returns
boolean
References

Vec


nearestPoint()

Public method

Signature
nearestPoint(A: Vec): Vec
Parameters
NameDescription

A

Vec
Returns
Vec
References

Vec


EditorErrorBoundary