DepthSegment class

A segment from a directed edge which has been assigned a depth value for its sides.

Implemented types

Constructors

DepthSegment(LineSegment seg, int depth)

Properties

hashCode int
The hash code for this object.
no setterinherited
leftDepth int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upwardSeg LineSegment
getter/setter pair

Methods

compareTo(dynamic obj) int
Defines a comparison operation on DepthSegments which orders them left to right. Assumes the segments are normalized.
override
compareX(LineSegment seg0, LineSegment seg1) int
Compare two collinear segments for left-most ordering. If segs are vertical, use vertical ordering for comparison. If segs are equal, return 0. Segments are assumed to be directed so that the second coordinate is >= to the first (e.g. up and to the right).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited