Table of contents

Public class

Signature
class Edge2d extends Geometry2d {}
References

Geometry2d

Source

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


Constructor

Public constructor

Constructs a new instance of the Edge2d class

Parameters
NameDescription

config

{
  start: Vec2d
  end: Vec2d
  isSnappable?: boolean
}
References

Vec2d


Properties


d

Public property

Signature
d: Vec2d
References

Vec2d


end

Public property

Signature
end: Vec2d
References

Vec2d


length

Public readonly property

Signature
get length(): number

start

Public property

Signature
start: Vec2d
References

Vec2d


u

Public property

Signature
u: Vec2d
References

Vec2d


ul

Public property

Signature
ul: number

Methods

getVertices()

Public method

Signature
getVertices(): Vec2d[]
References

Vec2d


hitTestLineSegment()

Public method

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

A

Vec2d

B

Vec2d

_zoom

number
Returns
boolean
References

Vec2d


midPoint()

Public method

Signature
midPoint(): Vec2d
References

Vec2d


nearestPoint()

Public method

Signature
nearestPoint(point: Vec2d): Vec2d
Parameters
NameDescription

point

Vec2d
Returns
Vec2d
References

Vec2d


EASINGSEditor