iNET Interactive - Online Advertising Agency
          
Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Math Question (Vectors)


Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2003, 12:17 PM
Code A's Avatar
Code A Code A is offline
Junior Contributor
 
Join Date: Jul 2002
Location: Area 51 A
Posts: 336
Default Math Question (Vectors)

I used to have this formula when I was in college but I can no longer find it. I need to calculate the Angle in each direction relative to the coordinates of a vector. Any know how to do this? From what I recall it wasn't too difficult...

For Example:

GIVEN these Vector Coordinates
I = 1
J = 1
K = 1

these RESULTS are produced
YZ = 45 deg
XZ = 45 deg
XY = 45 deg
__________________
www.kptechnologies.com
Reply With Quote
  #2  
Old 03-27-2003, 01:28 PM
MarkS MarkS is offline
Freshman
 
Join Date: Feb 2003
Location: Chicago
Posts: 25
Default

Here's a good explanation of what you're after.

http://www.cse.shirazu.ac.ir/users/z...s/chapter3.pdf
Reply With Quote
  #3  
Old 03-27-2003, 01:30 PM
Iceplug's Avatar
Iceplug Iceplug is offline
MetaCenturion
Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: New York, USA
Posts: 16,105
Default

It's only a ArcTangent function call.
AngYX = 180 * Atn(Y / X) / 3.1415926536
AngZY = 180 * Atn(Z / Y) / 3.1415926536
AngZX = 180 * Atn(Z / X) / 3.1415926536
Also, you can search for BillSoo's ArcTangent function in the code library for negative vector components.

Also, you'll have to convert the Arctangent radians into degree by multiplying by 180 and dividing by Pi.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE!Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #4  
Old 03-28-2003, 08:29 AM
Code A's Avatar
Code A Code A is offline
Junior Contributor
 
Join Date: Jul 2002
Location: Area 51 A
Posts: 336
Default

thanks guys!
__________________
www.kptechnologies.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Math Question Mikecrosoft General 13 01-22-2003 11:13 AM
Math question. Loomi Game Programming 18 09-19-2002 09:14 AM
Little MAth Question outlaw187 General 51 07-22-2002 08:26 PM
General question for MATH majors... BillSoo General 11 02-22-2002 11:50 AM
If Then Math property Question Kaibutsu General 3 02-02-2002 11:52 PM

Advertisement: