8.5.13   Trigonometric Functions

All these functions work on tuples of numbers as arguments. The input can either be of type integer or real. However, the resulting type will be of type real. The functions are applied to all tuple values, and the resulting tuple has the same length as the input tuple. For atan2 the two input tuples have to be of equal length or one of them of length 1. table 8.20 shows the provided trigonometric functions. For the trigonometric functions the angle is specified in radians.

Operation Meaning HALCON Operator

sin(a) sine of a tuple_sin
cos(a) cosine of a tuple_cos
tan(a) tangent of a tuple_tan
asin(a) arc sine of a in the interval [ − π/2, π/2],  a ∈ [ − 1,  1] tuple_asin
acos(a) arc cosine a in the interval [ − π/2, π/2],  a ∈ [ − 1,  1] tuple_acos
atan(a) arc tangent a in the interval [ − π/2, π/2],  a ∈ [ − ∞,  + ∞] tuple_atan
atan2(a1,a2) arc tangent a1/a2 in the interval [ − π, π] tuple_atan2
sinh(a) hyperbolic sine of a tuple_sinh
cosh(a) hyperbolic cosine of a tuple_cosh
tanh(a) hyperbolic tangent of a tuple_tanh
asinh(a) inverse hyperbolic sine of a tuple_asinh
acosh(a) inverse hyperbolic cosine of a tuple_acosh
atanh(a) inverse hyperbolic tangent of a tuple_atanh

Table 8.20: Trigonometric functions.