[geos-commits] r2591 - in trunk/source: algorithm headers/geos/algorithm

svn_geos at osgeo.org svn_geos at osgeo.org
Tue Jun 16 11:46:11 EDT 2009


Author: strk
Date: 2009-06-16 11:46:10 -0400 (Tue, 16 Jun 2009)
New Revision: 2591

Modified:
   trunk/source/algorithm/RobustDeterminant.cpp
   trunk/source/headers/geos/algorithm/RobustDeterminant.h
Log:
Sync RobustDeterminant to revision 1.14


Modified: trunk/source/algorithm/RobustDeterminant.cpp
===================================================================
--- trunk/source/algorithm/RobustDeterminant.cpp	2009-06-16 15:43:14 UTC (rev 2590)
+++ trunk/source/algorithm/RobustDeterminant.cpp	2009-06-16 15:46:10 UTC (rev 2591)
@@ -15,7 +15,7 @@
  *
  **********************************************************************
  *
- * Last port: algorithm/RobustDeterminant.java 1.13 (JTS-1.7)
+ * Last port: algorithm/RobustDeterminant.java 1.14 (JTS-1.7)
  *
  **********************************************************************/
 

Modified: trunk/source/headers/geos/algorithm/RobustDeterminant.h
===================================================================
--- trunk/source/headers/geos/algorithm/RobustDeterminant.h	2009-06-16 15:43:14 UTC (rev 2590)
+++ trunk/source/headers/geos/algorithm/RobustDeterminant.h	2009-06-16 15:46:10 UTC (rev 2591)
@@ -14,7 +14,7 @@
  *
  **********************************************************************
  *
- * Last port: algorithm/RobustDeterminant.java 1.13 (JTS-1.7)
+ * Last port: algorithm/RobustDeterminant.java 1.14 (JTS-1.7)
  *
  **********************************************************************/
 
@@ -51,6 +51,15 @@
  */
 class GEOS_DLL RobustDeterminant {
 public:
+
+	/** \brief
+	 * Computes the sign of the determinant of the 2x2 matrix
+	 * with the given entries, in a robust way.
+	 *
+	 * @return -1 if the determinant is negative,
+	 * @return  1 if the determinant is positive,
+	 * @return  0 if the determinant is 0.
+	 */
 	static int signOfDet2x2(double x1,double y1,double x2,double y2);
 };
 



More information about the geos-commits mailing list