C

BorderLineSegment

Represents a segment of a BorderLine in a graph or geometric representation.
Inheritance Hierarchy

Remarks

A BorderLineSegment is defined by a starting position, an initial value, and a slope. The segment continues from its starting position with the specified slope, defining a linear function. This class also provides methods to retrieve the value at any given position along the segment, and to navigate between adjacent segments.

This class cannot be instantiated

Members

No filters for this type

Properties

Gets the ending position of this segment.
If this segment is the last one in the sequence, the end will return Number.MAX_VALUE.
readonlyfinal

Property Value

The ending position of this segment.
Gets the next segment in the sequence.
If the current segment has no successor, this property will return null.
readonlyfinal

Property Value

The next segment, or null if there is no next segment.
Gets the previous segment in the sequence.
readonlyfinal

Property Value

The previous segment, or null if there is no previous segment.

Methods

Gets the value of the segment at the specified position.
If the position lies outside the segment's range, the calculated value might be invalid. The position must be provided without any external offsets as the segment is not aware of them.
final

Parameters

position: number
The position for which the value is to be retrieved.

Return Value

number
The value of the segment at the specified position.
Returns a string representation for this object.
final

Return Value

string
a string describing this object