Return to Statement


Angle of a Line Example

This example demonstrates the use of the ANGLF statement to extract the angle of several lines (or lines between points and arc centers).

$$
$$ Declarations
$$
ENTITY/PT1,PT2,CR1,CR2,LN1
$$
$$ Geometry Definition
$$
PT1=POINT/-1,-.5
PT2=POINT/1,.5
CR1=CIRCLE/-1,-.5,1
CR2=CIRCLE/1,.5,1
LN1=LINE/-1,-.5,1,.5
$$
$$ Angle of Lines
$$
ANG1=ANGLF(LN1)
ANG2=ANGLF(CR1,CR2)
ANG3=ANGLF(PT1,PT2)

Use of the ANGLF Function

NOTE: ANG1, ANG2 and ANG3 in the example above would be assigned the same value.