Class. Point to Point Line
get b():
number
Defined in: packages/sprotty/src/utils/geometry.ts:132
number
get c():
number
Defined in: packages/sprotty/src/utils/geometry.ts:136
number
get direction():
CardinalDirection
Defined in: packages/sprotty/src/utils/geometry.ts:169
The direction of this line, such as ’north’, ‘south’, or ‘south-west’.
get slope():
undefined
|number
Defined in: packages/sprotty/src/utils/geometry.ts:151
The slope of the line.
A vertical line returns undefined
.
undefined
| number
get slopeOrMax():
number
Defined in: packages/sprotty/src/utils/geometry.ts:159
The slope of the line or Number.MAX_SAFE_INTEGER
if vertical.
number
hasIndistinctPoints(
otherLine
):boolean
Defined in: packages/sprotty/src/utils/geometry.ts:237
PointToPointLine
the other line
boolean
whether the start and end point of this line is does not have distinct start
or end points with the otherLine
intersection(
otherLine
):undefined
|Point
Defined in: packages/sprotty/src/utils/geometry.ts:197
PointToPointLine
the other line
undefined
| Point
the intersection point between this
line and the otherLine
if exists, or undefined
.