Class Position

java.lang.Object
org.locationtech.jts.geom.Position

public class Position extends Object
Indicates the position of a location relative to a node or edge component of a planar topological structure.
Version:
1.7
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Specifies that a location is to the left of a component
    static final int
    Specifies that a location is on a component
    static final int
    Specifies that a location is to the right of a component
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final int
    opposite(int position)
    Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ON

      public static final int ON
      Specifies that a location is on a component
      See Also:
    • LEFT

      public static final int LEFT
      Specifies that a location is to the left of a component
      See Also:
  • Constructor Details

    • Position

      public Position()
  • Method Details

    • opposite

      public static final int opposite(int position)
      Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.