|
-
Jul 18th, 2001, 01:46 AM
#1
Thread Starter
Lively Member
finding angles
Can someone please send me a code sniplet of how to calculate the angle from one point of the form and another point? Thanks
-
Jul 18th, 2001, 04:01 AM
#2
Fanatic Member
You can't do it directly like that. You'll need a 3rd point to act as a reference point for the other 2. Then you can get the angle between them. Such an angle doesn't exist unless that reference point exists. It's easy to find that angle once you have that point though. Depending on how you define your coordinate system, you can make things easy or hard . This is a very simple example, but it should show you all that's necessary for you to develop the ability to work with any sort of differing orientations and whatnot. I've attached a little jpg of a diagram, and it has the calculations as you'd use them in VB.
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|