| 984 | return bv_variable_create_float(0.0f); |
| 985 | } |
| 986 | bv_variable lib_common_sinh(bv_program* prog, u8 count, bv_variable* args) |
| 987 | { |
| 988 | /* sinh(genType) */ |
| 989 | if (count == 1) { |
| 990 | if (args[0].type == bv_type_object) { // sinh(vec3), ... |
| 991 | bv_object* vec = bv_variable_get_object(args[0]); |
| 992 | glm::vec4 vecData = glm::sinh(sd::AsVector<4, float>(args[0])); |
| 993 | |
| 994 | bv_variable ret = Common::create_vec(prog, bv_type_float, vec->type->props.name_count); |
| 995 | bv_object* retObj = bv_variable_get_object(ret); |
| 996 | |
| 997 | for (u16 i = 0; i < retObj->type->props.name_count; i++) |
| 998 | retObj->prop[i] = bv_variable_create_float(vecData[i]); |
| 999 | |
| 1000 | return ret; |
| 1001 | } |
| 1002 | else // sinh(scalar) |
| 1003 | return bv_variable_create_float(glm::sinh(bv_variable_get_float(bv_variable_cast(bv_type_float, args[0])))); |
| 1004 | } |
| 1005 | |
| 1006 | return bv_variable_create_float(0.0f); |
| 1007 | } |
| 1008 | bv_variable lib_common_tan(bv_program* prog, u8 count, bv_variable* args) |
| 1009 | { |
| 1010 | /* tan(genType) */ |
nothing calls this directly
no test coverage detected