PDA

View Full Version : Inverse Tangent Syntax


ir a programmer
06-04-2008, 07:24 PM
What is the syntax for PCDMIS to calculate inverse tangent in degrees?

I am trying to rotate a constructed line by dividing the opposite side by the adjacent side of a right triangle, and use the tangent angle to rotate an alignment by the calculated number of degrees, based on the measured/constructed features.

Anybody?

QCinTN
06-05-2008, 12:06 AM
Search the help file for "mathematical functions". ATAN for inverse TAN in radians. RAD2DEG to convert to degrees.

cmmguy
06-05-2008, 12:59 AM
What is the syntax for PCDMIS to calculate inverse tangent in degrees?

I am trying to rotate a constructed line by dividing the opposite side by the adjacent side of a right triangle, and use the tangent angle to rotate an alignment by the calculated number of degrees, based on the measured/constructed features.

Anybody?

ASSIGN/ANGLE = RAD2DEG(ATAN(OPPOSITESIDE/ADJACENTSIDE))

ir a programmer
06-05-2008, 09:28 AM
Thanks -

That worked. Now I need to find where I saw how to use a variable in an Alignment.

slesholdofthreep
06-05-2008, 10:19 AM
Thanks -

That worked. Now I need to find where I saw how to use a variable in an Alignment.

You need to insert the variables into a generic feature and align to that.