RichKMLS / 2D-unit-vector-from-a-given-angle

Output a 2D unit vector's X and Y coordinates and display based on a given angle using Excel shapes and VBA!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2D-unit-vector-from-a-given-angle


Output the X and Y coordinates of a vector and display based on a given degree angle using Excel and VBA!




Using simple trigonometric functions—this script calculates the x and y value of a unit triangle based on the degree angle input. It then moves all shapes (triangle, vector arrow, text boxes, partial circles) based off the calculated x and y values. User may input a specific degree angle or run 'prettyvisual()' to run through all angles 0-359.


About

Output a 2D unit vector's X and Y coordinates and display based on a given angle using Excel shapes and VBA!


Languages

Language:VBA 100.0%