Here you can find the source of distpl(double A, double B, double C, double x, double y)
public static double distpl(double A, double B, double C, double x, double y)
//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)); } }