Java Distance Calculate distpl(double A, double B, double C, double x, double y)

Here you can find the source of distpl(double A, double B, double C, double x, double y)

Description

distpl

License

Mozilla Public License

Declaration

public static double distpl(double A, double B, double C, double x, double y) 

Method Source Code

//package com.java2s;
/** This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *//*  w  w w  .  j a v a  2s.c om*/

public class Main {
    public static double distpl(double A, double B, double C, double x, double y) {
        return Math.abs(A * x + B * y + C) / Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2));
    }
}

Related

  1. distHaversineRAD(double lat1, double lon1, double lat2, double lon2)
  2. distinctFrom(String string, String other)
  3. distL1(double[] h1, double[] h2)
  4. distL1(int[] h1, int[] h2)
  5. distortion(double[] xvalues, double[] yvalues, int[] include)
  6. distPointLineSigned(double px, double py, double qx, double qy, double rx, double ry)
  7. distPointLineSquared(double px, double py, double qx, double qy, double rx, double ry)
  8. distPointSegmentSquared(double px, double py, double qx, double qy, double rx, double ry)
  9. distribution(int[] values)