/* * GeoTools - The Open Source Java GIS Toolkit * http://geotools.org * * (C) 2006-2008, Open Source Geospatial Foundation (OSGeo) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotools.geometry.iso.util.algorithmND; /** * @author roehrig * * * * * @source $URL$ */ public class AlgoLineND { // Commented out because methods are neither tested nor used // /** // * @param p0 // * @param p1 // * @return the square of the length // */ // public static double getLengthSquare(double[] p0, double[] p1) { // return AlgoPointND.getDistanceSquare(p0,p1); // } // /** // * @param p0 // * @param p1 // * @return the square of the length // */ // public static double getLength(double[] p0, double[] p1) { // return AlgoPointND.getDistance(p0,p1); // } // /** // * // * @param p0 // * @param p1 // * @param p // * @return distance // */ // public static double getDistance(double[] p0, double[] p1, double[] p) { // return AlgoPointND.getDistance(getClosestPoint(p0,p1,p),p); // } // // /** // * @param p0 // * @param p1 // * @param p // * @return // */ // public static double[] getClosestPoint(double[] p0, double[] p1, double[] p) { // // TODO // return null; // } }