Package org.locationtech.jts.edgegraph
Class MarkHalfEdge
- java.lang.Object
-
- org.locationtech.jts.edgegraph.HalfEdge
-
- org.locationtech.jts.edgegraph.MarkHalfEdge
-
-
Constructor Summary
Constructors Constructor Description MarkHalfEdge(Coordinate orig)
Creates a new marked edge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMarked()
Tests whether this edge is marked.static boolean
isMarked(HalfEdge e)
Tests whether the given edge is marked.void
mark()
Marks this edge.static void
mark(HalfEdge e)
Marks the given edge.static void
markBoth(HalfEdge e)
Marks the edges in a pair.void
setMark(boolean isMarked)
Sets the value of the mark on this edge.static void
setMark(HalfEdge e, boolean isMarked)
Sets the mark for the given edge to a boolean value.static void
setMarkBoth(HalfEdge e, boolean isMarked)
Sets the mark for the given edge pair to a boolean value.
-
-
-
Constructor Detail
-
MarkHalfEdge
public MarkHalfEdge(Coordinate orig)
Creates a new marked edge.- Parameters:
orig
- the coordinate of the edge origin
-
-
Method Detail
-
isMarked
public static boolean isMarked(HalfEdge e)
Tests whether the given edge is marked.- Parameters:
e
- the edge to test- Returns:
- true if the edge is marked
-
mark
public static void mark(HalfEdge e)
Marks the given edge.- Parameters:
e
- the edge to mark
-
setMark
public static void setMark(HalfEdge e, boolean isMarked)
Sets the mark for the given edge to a boolean value.- Parameters:
e
- the edge to setisMarked
- the mark value
-
setMarkBoth
public static void setMarkBoth(HalfEdge e, boolean isMarked)
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
public static void markBoth(HalfEdge e)
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
-
-