Trigonometric functions in Template Editor

Tekla Structures
Modified: 14 Nov 2024
2025
Tekla Structures

Trigonometric functions in Template Editor

Trigonometric functions are used to calculate angles between members or inside custom components and are used in angle attributes. The unit of angle for trigonometric functions is given with the prefixes:

  • d is degree (values 0-360).

  • r is radians (this is the default, values 0-2 π).

  • g is gradient (grad, values 0-400).

For example:

  • sin (d180)

  • sin (r3.14) or sin (3.14)

  • sin (g200)

You can access trigonometric functions in the Formula Contents dialog and in the Rule Contents dialog.

Select functions from the Math list in the Operators area of the dialog.

Function

Parameters

Description

sin

angle

Calculates sine.

cos

angle

Calculates cosine.

tan

angle

Calculates tangent.

asin

angle

Calculates the inverse of sin, return value in radians.

acos

angle

Calculates the inverse of cos, return value in radians.

atan

angle

Calculates the inverse of tan, return value in radians.

sinh

angle

Calculates the hyperbolic sine.

cosh

angle

Calculates the hyperbolic cosine.

tanh

angle

Calculates the hyperbolic tangent.

atan2

y, x

Calculates the direction angle of vector (x, y), return value in radians.

Was this helpful?
Previous
Next