Difference between revisions of "DistanceFromEquationOfLine"
From scripting
(Created page with " Function DistanceFromEquationOfLine(LineSlope As Variant, Line_Y_Intersept As Variant, Pt_X_Coord As Double, Pt_Y_Coord As Double) As Double DistanceFromEquationOfLine = Abs...") |
(No difference)
|
Latest revision as of 05:26, 22 April 2017
Function DistanceFromEquationOfLine(LineSlope As Variant, Line_Y_Intersept As Variant, Pt_X_Coord As Double, Pt_Y_Coord As Double) As Double DistanceFromEquationOfLine = Abs(Pt_Y_Coord - (LineSlope * Pt_X_Coord) - Line_Y_Intersept) / Sqr((LineSlope * LineSlope) + 1) End Function