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(): Box2d
References

Box2d


getVertices()

Public method

Signature
getVertices(): any[]

hitTestLineSegment()

Public method

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

A

Vec2d

B

Vec2d

zoom

number
Returns
boolean
References

Vec2d


nearestPoint()

Public method

Signature
nearestPoint(A: Vec2d): Vec2d
Parameters
NameDescription

A

Vec2d
Returns
Vec2d
References

Vec2d


EditorEPSILON