public class RobustDeterminant extends Object
The original code carries the following copyright notice:
Author : Olivier Devillers Olivier.Devillers@sophia.inria.fr http:/www.inria.fr:/prisme/personnel/devillers/anglais/determinant.html Olivier Devillers has allowed the code to be distributed under the LGPL (2012-02-16) saying "It is ok for LGPL distribution." Copyright (c) 1995 by INRIA Prisme Project BP 93 06902 Sophia Antipolis Cedex, France. All rights reserved
Constructor and Description |
---|
RobustDeterminant() |
Modifier and Type | Method and Description |
---|---|
static int |
orientationIndex(Coordinate p1,
Coordinate p2,
Coordinate q)
Returns the index of the direction of the point
q relative to
a vector specified by p1-p2 . |
static int |
signOfDet2x2(double x1,
double y1,
double x2,
double y2)
Computes the sign of the determinant of the 2x2 matrix
with the given entries, in a robust way.
|
public static int signOfDet2x2(double x1, double y1, double x2, double y2)
public static int orientationIndex(Coordinate p1, Coordinate p2, Coordinate q)
q
relative to
a vector specified by p1-p2
.p1
- the origin point of the vectorp2
- the final point of the vectorq
- the point to compute the direction toCopyright © 2016. All rights reserved.