interiorAngle static method
Computes the interior angle between two segments of a ring. The ring is
assumed to be oriented in a clockwise direction. The computed angle will be
in the range 0, 2Pi
@param p0
a point of the ring
@param p1
the next point of the ring
@param p2
the next point of the ring
@return the interior angle based at p1
Implementation
static double interiorAngle(Coordinate p0, Coordinate p1, Coordinate p2) {
double anglePrev = Angle.angle2C(p1, p0);
double angleNext = Angle.angle2C(p1, p2);
return (angleNext - anglePrev).abs();
}