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

{
  end: Vec
  start: Vec
}
References

Vec


Properties


d

Public property

Signature
d: Vec
References

Vec


end

Public property

Signature
end: Vec
References

Vec


length

Public readonly property

Signature
get length(): number

start

Public property

Signature
start: Vec
References

Vec


u

Public property

Signature
u: Vec
References

Vec


ul

Public property

Signature
ul: number

Methods

getVertices()

Public method

Signature
getVertices(): Vec[]
References

Vec


hitTestLineSegment()

Public method

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

A

Vec

B

Vec

distance

number
Returns
boolean
References

Vec


midPoint()

Public method

Signature
midPoint(): Vec
References

Vec


nearestPoint()

Public method

Signature
nearestPoint(point: Vec): Vec
Parameters
NameDescription

point

Vec
Returns
Vec
References

Vec


EASINGSEditor