PINE LIBRARY

TRIG

Library "TRIG"

degreesToRadians(degrees)
  Parameters:
    degrees (float)

radiansToDegrees(radians)
  Parameters:
    radians (float)

rt_get_angleAlphaFromLine(x1, y1, x2, y2, inDegrees)
  Parameters:
    x1 (int)
    y1 (float)
    x2 (int)
    y2 (float)
    inDegrees (bool)

rt_get_angleBetaFromLine(x1, y1, x2, y2)
  Parameters:
    x1 (int)
    y1 (float)
    x2 (int)
    y2 (float)
MATH

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer