orientation static method

bool orientation(
  1. List<Coordinate> pts
)

Computes the canonical orientation for a coordinate array.

@param pts the array to test @return true if the points are oriented forwards or false</code if the points are oriented in reverse

Implementation

static bool orientation(List<Coordinate> pts) {
  return CoordinateArrays.increasingDirection(pts) == 1;
}