Created
March 2, 2016 16:26
-
-
Save aj0strow/badb75f0a120b2cfc5bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Function LinearInterpolate(ByVal x2 As Integer, ByVal y2 As Double, | |
ByVal x3 As Integer, ByVal y3 As Double) As Double | |
Try | |
LinearInterpolate = ((y2 - y3) / (x2 - x3)) * x2 + y2 | |
Catch ex As Exception | |
SharedLogger.LogException(_moduleID & ":LI", ex) 'Log any exceptions. | |
LinearInterpolate = (y2 + y3) / 2 | |
End Try | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment