by Jeffrey Katz (4 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
Ever wonder how image editors create their angle selectors? Ever needed a dialog to select an angle? This code is for you. Using advanced math functions NOT built into VB, this code creates a selector in a picture box. It has functions to return the ArcSine of a number and to convert degrees into radians and back.
Inputs
X, Y
Assumes
A picture box, with square sides.
Code Returns
theAngle