Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- find angles for a 3D rotation

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-12-2016
10:37 AM

12-12-2016
10:37 AM

to all

I am trying to set up a Find() to see if I can solve the following problem

given a vector in global coordinate system (vglobal) and a vector in a local coordinate system (vlocal) so that the local co-ordinate system has rotated by angle (a,b,c)

can one find these angles? in other words if one knows the starting vector and the final (vector) can one find the transformation

problem is set up (see attached) but the exact syntax for the Find() is failing me

Thanks

Regards

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-12-2016
01:50 PM

12-12-2016
01:50 PM

Here is a variations which does not limit you to vectors of same length (if only the directions counts) and at least in the example given for some reason unknown to me provides the "expected" solution:

Regards

Werner

5 REPLIES 5

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-12-2016
11:13 AM

12-12-2016
11:13 AM

Re: find angles for a 3D rotation

Something like that?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-12-2016
12:16 PM

12-12-2016
12:16 PM

Re: find angles for a 3D rotation

It would make sense to turn the solve block into a function dependent on the two vectors.

Of course there are many ways to turn one point into another as long as they have the same magnitude (which is not the case with your example!), so the solve block will stop at the first one it comes by and which may not be the one you have in mind.

You can use your example, too, if you multiply vglobal by 2:

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-12-2016
01:23 PM

12-12-2016
01:23 PM

Re: find angles for a 3D rotation

thanks a lot VladimirN. Much appreciated. Will look into the proposed way of doing it

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-12-2016
01:26 PM

12-12-2016
01:26 PM

Re: find angles for a 3D rotation

thanks a lot VladimirN. Much appreciated. Didn't think about the function but for the real thing may actually be slightly "neater" approach

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-12-2016
01:50 PM

12-12-2016
01:50 PM

Here is a variations which does not limit you to vectors of same length (if only the directions counts) and at least in the example given for some reason unknown to me provides the "expected" solution:

Regards

Werner