Table of contents

Public class

Signature
class Arc2d extends Geometry2d {}
References

Geometry2d

Source

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


Constructor

Public constructor

Constructs a new instance of the Arc2d class

Parameters
NameDescription

config

Omit<
  Geometry2dOptions,
  'isClosed' | 'isFilled'
> & {
  center: Vec
  end: Vec
  largeArcFlag: number
  radius: number
  start: Vec
  sweepFlag: number
}
References

Vec


Properties


angleEnd

Public property

Signature
angleEnd: number

angleStart

Public property

Signature
angleStart: number

end

Public property

Signature
end: Vec
References

Vec


length

Public property

Signature
length: number

measure

Public property

Signature
measure: number

radius

Public property

Signature
radius: number

start

Public property

Signature
start: Vec
References

Vec


Methods

getVertices()

Public method

Signature
getVertices(): Vec[]
References

Vec


hitTestLineSegment()

Public method

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

A

Vec

B

Vec
Returns
boolean
References

Vec


nearestPoint()

Public method

Signature
nearestPoint(point: Vec): Vec
Parameters
NameDescription

point

Vec
Returns
Vec
References

Vec


approximatelyareAnglesCompatible