public override string ToString() { return($"[SegmentEndGeometry {base.ToString()}\n" + "\t" + $"NodeId() = {NodeId()}\n" + "\t" + $"IsValid() = {IsValid()}\n" + "\t" + $"LastKnownNodeId = {LastKnownNodeId}\n" + "\t" + $"ConnectedSegments = {ConnectedSegments.ArrayToString()}\n" + "\t" + $"NumConnectedSegments = {NumConnectedSegments}\n" + "\t" + $"LeftSegments = {LeftSegments.ArrayToString()}\n" + "\t" + $"NumLeftSegments = {NumLeftSegments}\n" + "\t" + $"IncomingLeftSegments = {IncomingLeftSegments.ArrayToString()}\n" + "\t" + $"NumIncomingLeftSegments = {NumIncomingLeftSegments}\n" + "\t" + $"OutgoingLeftSegments = {OutgoingLeftSegments.ArrayToString()}\n" + "\t" + $"NumOutgoingLeftSegments = {NumOutgoingLeftSegments}\n" + "\t" + $"RightSegments = {RightSegments.ArrayToString()}\n" + "\t" + $"NumRightSegments = {NumRightSegments}\n" + "\t" + $"NumIncomingSegments = {NumIncomingSegments}\n" + "\t" + $"NumOutgoingSegments = {NumOutgoingSegments}\n" + "\t" + $"IncomingRightSegments = {IncomingRightSegments.ArrayToString()}\n" + "\t" + $"NumIncomingRightSegments = {NumIncomingRightSegments}\n" + "\t" + $"OutgoingRightSegments = {OutgoingRightSegments.ArrayToString()}\n" + "\t" + $"NumOutgoingRightSegments = {NumOutgoingRightSegments}\n" + "\t" + $"StraightSegments = {StraightSegments.ArrayToString()}\n" + "\t" + $"NumStraightSegments = {NumStraightSegments}\n" + "\t" + $"IncomingStraightSegments = {IncomingStraightSegments.ArrayToString()}\n" + "\t" + $"NumIncomingStraightSegments = {NumIncomingStraightSegments}\n" + "\t" + $"OutgoingStraightSegments = {OutgoingStraightSegments.ArrayToString()}\n" + "\t" + $"NumOutgoingStraightSegments = {NumOutgoingStraightSegments}\n" + "\t" + $"OnlyHighways = {OnlyHighways}\n" + "\t" + $"OutgoingOneWay = {OutgoingOneWay}\n" + "\t" + $"IncomingOneWay = {IncomingOneWay}\n" + "\t" + $"GetClockwiseIndex() = {GetClockwiseIndex()}\n" + "SegmentEndGeometry]"); }
public bool IsConnectedTo(ushort otherSegmentId) { return(IsValid() && ConnectedSegments.Contains(otherSegmentId)); }