C. Andrew Dunning Posted March 27, 2006 Share Posted March 27, 2006 Good morning! I'm trying to have VS calculate an angle (A), based on my knowing a chord length (S) and a Radius ®. I know how to rearrange the formula "S = 2*r (Sin (A/2))" and to get the value on a calculator using the Inverse Sine function. How do I do that in VS? I can't seem to find the call for that function... Thanks! Quote Link to comment
Jonathan Pickup Posted March 27, 2006 Share Posted March 27, 2006 i think you have to convert the angle to degrees as well. Quote Link to comment
islandmon Posted March 27, 2006 Share Posted March 27, 2006 VW calculates using Radians not Degrees. Function =Deg2Rad, then Rad2Deg. Quote Link to comment
C. Andrew Dunning Posted March 27, 2006 Author Share Posted March 27, 2006 Thanks... The degrees and radians part, I found (and, understand). It's the Inverse Sine function that has me stumped... Quote Link to comment
PeterT Posted March 28, 2006 Share Posted March 28, 2006 The inverse sine function is also called the arcsine function. Per the VectorScript Function Reference: Function ArcSin returns the arc sine(in radians) of the specified value. I think this is what you are looking for. Quote Link to comment
C. Andrew Dunning Posted March 28, 2006 Author Share Posted March 28, 2006 Many thanks! One of those cases where I wasn't sure what simply to look up. Quote Link to comment
C. Andrew Dunning Posted March 28, 2006 Author Share Posted March 28, 2006 Me again... So, if Chord = 2*((Sin (Angle/2))*Radius is the proper way to find the angle Angle = (ArcSin(Chord/Radius*2))*2 ? Quote Link to comment
Vectorworks, Inc Employee Vlado Posted March 29, 2006 Vectorworks, Inc Employee Share Posted March 29, 2006 It's not clear if it is: '(Chord/Radius)*2' or '(Chord/(Radius*2))' So, you should have: Angle := 2 * ArcSin( Chord / (2*Radius) ); Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.