| 43 | namespace sd |
| 44 | { |
| 45 | sd::Matrix AsMatrix(const bv_variable& var) |
| 46 | { |
| 47 | if (var.type == bv_type_object) { |
| 48 | bv_object* obj = bv_variable_get_object(var); |
| 49 | return *(sd::Matrix*)obj->user_data; |
| 50 | } |
| 51 | |
| 52 | return sd::Matrix(); |
| 53 | } |
| 54 | float AsFloat(const bv_variable& var) |
| 55 | { |
| 56 | if (var.type == bv_type_float) |