Message Boards Message Boards

0
|
12245 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to let WAlpha compute the angles between a vector & xy,xz,yz planes

Posted 9 years ago

Take (1,1,1) for example, the output result should be (35.xx°,35.xx°,35.xx°)

POSTED BY: Allen He
2 Replies
Posted 9 years ago

To get the angle between the vector (1,1,1) and the plane z = 0, you can enter

angle between vectors (1,1,1) and (1,1,0)

or, using the WL built-in function,

VectorAngle[{1, 1, 1}, {1, 1, 0}]

The solutions are given in radians. I did not succeed to get the expression in degrees using only natural language, but you can mix with WL functions as

VectorAngle[{1, 1, 1}, {1, 1, 0}] in degrees

otherwise in pure Wolfram Language, it would be

VectorAngle[{1, 1, 1}, {1, 1, 0}]*180/Pi

To get the three angles from a single request:

N[VectorAngle[{1, 1, 1}, #]&/@{{0,1,1},{1,0,1},{1,1,0}}]
POSTED BY: Xavier Roy
Posted 9 years ago

Thanks! This is exactly what I needed :)

POSTED BY: Allen He
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract