Files
divkit/test_data/expression_test_data/function_signatures_trigonometry.json
T
4eb0da 86afedf430 Trigonometry funcs
commit_hash:ca6a52e585e1e13024e145ce07f753f92031d518
2024-12-24 16:27:50 +03:00

93 lines
2.0 KiB
JSON

{
"signatures": [
{
"function_name": "pi",
"doc": "Returns value of the `π`: ratio of the circumference of a circle to its diameter",
"result_type": "number",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "toRadians",
"doc": "Converts the argument value from degrees to radians",
"arguments": [
{
"type": "number",
"doc": "Number value representing degrees."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "toDegrees",
"doc": "Converts the argument value from radians to degrees",
"arguments": [
{
"type": "number",
"doc": "Number value representing radians."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "sin",
"doc": "Calculates the sine of an argument represented in radians",
"arguments": [
{
"type": "number",
"doc": "Number value."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "cos",
"doc": "Calculates the cos of an argument represented in radians",
"arguments": [
{
"type": "number",
"doc": "Number value representing radians."
}
],
"result_type": "number",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "atan",
"doc": "Calculates the angle in radians for a given tangent value",
"arguments": [
{
"type": "number",
"doc": "Number value representing the tangent."
}
],
"result_type": "number",
"platforms": [
"ios",
"web"
]
}
]
}