VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Calculate Angles from the coords of three points

Kevin Laity  (3 Submissions)   Math/Dates   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This code is useful in games where you need to calculate an angle quickly. Using three points it gives you the angle, in degrees, of the vertex.

Inputs
Three sets of coordinates: A center point, and the ends of two lines coming from the center.

Returns
The angle of the vertex in degrees

Rate Calculate Angles from the coords of three points (4(4 Vote))
Calculate Angles from the coords of three points.bas

Calculate Angles from the coords of three points Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters