Jump to content

Angle PCM syntax


---
 Share

Recommended Posts

I'm forgetting the correct syntax for an angle. 

Here's what I have in my para file, but it's not working. I seem to remember that maybe "rad" belongs in there somewhere?

Plane_1 = -5.51627

 

 

 

Edited
Link to comment
Share on other sites

  • [Cl...] changed the title to Angle PCM syntax

Hey Clarke, 

you can declare an angle as "-5.5".
You dont know in the moment of declaration if its in rad or degrees.

 

If you take an angle from a feature you always get it in rad

If you have a plane with an XY Angle of 180° degrees and you do:

angle = getActual("Plane1").a1

The variable "angle" will have a value of 3,14rad. If you want that in degrees you need to do this 

angle1 = deg(getActual("Plane1").a1)

In this case the value of "angle1" would be 180°

 

Edited
Link to comment
Share on other sites

if you do that the value of "Plane_1" would be -0,095° because the rad() fuction expects an angle in degrees as an argument

Edited
Link to comment
Share on other sites

 Share

×
×
  • Create New...