| 29 | } |
| 30 | |
| 31 | QString ComplexValue::getValueString() const |
| 32 | { |
| 33 | QString result; |
| 34 | result.append("<"); |
| 35 | result.append(real.getValueString()); |
| 36 | for(Value* v: imaginary) { |
| 37 | result.append(","); |
| 38 | result.append(v->getValueString()); |
| 39 | } |
| 40 | result.append(">"); |
| 41 | return result; |
| 42 | } |
| 43 | |
| 44 | void ComplexValue::toQuaternion(decimal& w,decimal& x,decimal& y,decimal& z) |
| 45 | { |