Core API Reference: Number Trigonometry
From Color Infection Wiki
Contents |
Sin
Get the sine of a angle in radians.
Input Parameters:
- Radians
- the radians of an angle.
Output Parameters:
- Sin (Radians)
- the sine of the angle.
Cos
Get the cosine of a angle in radians.
Input Parameters:
- Radians
- the radians of an angle.
Output Parameters:
- Cos (Radians)
- the cosine of the angle.
Tan
Get the tangent of a angle in radians.
Input Parameters:
- Radians
- the radians of an angle.
Output Parameters:
- Tan (Radians)
- the tangent of the angle.
ArcSin
Get the arc sine of a number, in radians.
Input Parameters:
- Sin (Radians)
- the sine value. Valid value range is between -1 and 1.
Output Parameters:
- Radians
- the arc sine of the input number, in radians. If the input value is valide, the return value range is between - π/2 and π/2, otherwise, the return value is NaN (not a value).
ArcCos
Get the arc cosine of a number, in radians.
Input Parameters:
- Sin (Radians)
- the cosine value. Valid value range is between -1 and 1.
Output Parameters:
- Radians
- the arc cosine of the input number, in radians. If the input value is valide, the return value range is between - π/2 and π/2, otherwise, the return value is NaN (not a value).
ArcTan
Get the arc tangent of a number, in radians.
Input Parameters:
- Tan (Radians)
- the tangent value.
Output Parameters:
- Radians
- the arc tangent of the input number, in radians. The return value range is between - π/2 and π/2.
ArcTan2
Get the arc tangent of y/x, in radians. The value of x can be zero.
Input Parameters:
- y
- the y coordinate.
- x
- the x coordinate.
Output Parameters:
- Radians
- the arc tangent of y/x, in radians. The return value range is between - π and π.