| 518 | |
| 519 | |
| 520 | double Dynamic::operator%(const Dynamic &inRHS) const |
| 521 | { |
| 522 | if (mPtr->__GetType()==vtInt && inRHS.mPtr->__GetType()==vtInt) |
| 523 | return mPtr->__ToInt() % inRHS->__ToInt(); |
| 524 | double lhs = mPtr->__ToDouble(); |
| 525 | double rhs = inRHS->__ToDouble(); |
| 526 | int even = (int)(lhs/rhs); |
| 527 | double remain = lhs - even * rhs; |
| 528 | if (remain<0) remain += fabs(rhs); |
| 529 | return remain; |
| 530 | } |
| 531 | |
| 532 | hx::IndexRef Dynamic::operator[](int inIndex) |
| 533 | { |
nothing calls this directly
no test coverage detected