The SIN function in ProBuilder language is used to calculate the sine of a given angle. The sine function is a fundamental trigonometric function that describes the ratio of the length of the opposite side to the hypotenuse in a right-angled triangle. In the context of programming, this function is often used in various calculations involving angles, such as rotations and oscillations.
SIN(a)
Where a is the angle in radians for which the sine value is to be calculated.
angleInDegrees = 90
angleInRadians = angleInDegrees * PI() / 180
result = SIN(angleInRadians)
This example calculates the sine of 90 degrees. First, it converts the angle from degrees to radians (since the SIN function requires the angle in radians), and then it computes the sine of that angle.
SIN function will always be between -1 and 1.