Class MarkHalfEdge
java.lang.Object
org.locationtech.jts.edgegraph.HalfEdge
org.locationtech.jts.edgegraph.MarkHalfEdge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMarked()Tests whether this edge is marked.static booleanTests whether the given edge is marked.voidmark()Marks this edge.static voidMarks the given edge.static voidMarks the edges in a pair.voidsetMark(boolean isMarked) Sets the value of the mark on this edge.static voidSets the mark for the given edge to a boolean value.static voidsetMarkBoth(HalfEdge e, boolean isMarked) Sets the mark for the given edge pair to a boolean value.Methods inherited from class HalfEdge
compareAngularDirection, compareTo, create, degree, dest, directionPt, equals, find, insert, isEdgesSorted, link, next, oNext, orig, prev, prevNode, sym, toString, toStringNode
-
Constructor Details
-
MarkHalfEdge
Creates a new marked edge.- Parameters:
orig- the coordinate of the edge origin
-
-
Method Details
-
isMarked
Tests whether the given edge is marked.- Parameters:
e- the edge to test- Returns:
- true if the edge is marked
-
mark
-
setMark
Sets the mark for the given edge to a boolean value.- Parameters:
e- the edge to setisMarked- the mark value
-
setMarkBoth
Sets the mark for the given edge pair to a boolean value.- Parameters:
e- an edge of the pair to updateisMarked- the mark value to set
-
markBoth
Marks the edges in a pair.- Parameters:
e- an edge of the pair to mark
-
isMarked
public boolean isMarked()Tests whether this edge is marked.- Returns:
- true if this edge is marked
-
mark
public void mark()Marks this edge. -
setMark
public void setMark(boolean isMarked) Sets the value of the mark on this edge.- Parameters:
isMarked- the mark value to set
-