MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Private Function GetAngularCoefficient(ByVal segment As PointF()) As Single If segment.Length <> 2 Then Throw New ArgumentException("Parameter must be of 2 items", "segment") Dim U As PointF = segment(0) Dim V As PointF = segment(1) Dim angle As Double = GetAngularCoefficientRads(U, V) If angle Mod Math.PI = Math.PI / 2D Then Return Single.PositiveInfinity If angle Mod Math.PI = -Math.PI / 2D Then Return Single.NegativeInfinity Return CSng(Math.Tan(angle)) End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.