Closed Thread
Results 1 to 6 of 6

Thread: 3-D Math Question

  1. #1
    floatingpoint is offline Newbie
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

    3-D Math Question

    Hi
    Thanks for looking at this.

    I have 4 points in 3-D Cartesian system and I know the coordinates of points 1,2 and 3.
    The question is how to determine the (x,y,z) coordinates of point 4 given the
    following information:
    a] Distance between point 3 and point 4.
    b] Angle between the points 2, 3 and 4.
    c] The torsion angle between points 1,2, 3 and 4.

    It would be very helpful if someone can describe the math that needs to be done with the equations. Please don't use any advanced math like rotation matrices, etc.


    Any help would be greatly appreciated.

    Thanks.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: 3-D Math Question

    At the very least, you will need trigonometry. It would be helpful if you had some examples, just to step through the calculations.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    floatingpoint is offline Newbie
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

    Re: 3-D Math Question

    I don't have specific examples because I need to program this for any general case. Yes I guess Trigonometry is needed but I don't know how to proceed . Thanks for looking at the question.

  5. #4
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: 3-D Math Question

    I can help step you through the math (and thus the logic), but you need to start with some values to play with.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    floatingpoint is offline Newbie
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

    Re: 3-D Math Question

    Quote Originally Posted by WingedPanther View Post
    I can help step you through the math (and thus the logic), but you need to start with some values to play with.
    Ok. Let's start with the most general case where we can set up the coordinate system ourselves.
    Point 1 is at the origin, [0,0,0]
    Point 2 is along the Z axis say [0,0,10]
    Point 3 is in the XZ plane [3,5,0]
    Now the inputs are distance between 1-2 = 10
    angle 1-2-3 can be calculated from the coordinates.
    angle 2-3-4 to be imposed as 60 degrees.
    Torsion angle 1-2-3-4 to be imposed as 120 degrees.

    I hope this helps you to help me

  7. #6
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: 3-D Math Question

    You need the distance from point 4 to one of the points.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 31
    Last Post: 01-06-2011, 05:08 PM
  2. Mom and Pop math
    By nicckk in forum The Lounge
    Replies: 2
    Last Post: 03-07-2009, 04:43 PM
  3. My VB can't do math
    By 5te4lthX in forum Visual Basic Programming
    Replies: 8
    Last Post: 06-20-2008, 12:38 PM
  4. math question in C program
    By s0n1c in forum C and C++
    Replies: 4
    Last Post: 02-12-2008, 10:56 AM
  5. SEO math
    By DevilsCharm in forum Search Engine Optimization
    Replies: 1
    Last Post: 07-22-2006, 12:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts