(Object b)
| 1548 | |
| 1549 | } |
| 1550 | |
| 1551 | @Override |
| 1552 | public Object __rdiv__(Object b) { |
| 1553 | if (b instanceof Number) |
| 1554 | return new Vec4( ((Number) b).doubleValue() / this.x , ((Number) b).doubleValue() / this.y, ((Number) b).doubleValue() / this.z, ((Number) b).doubleValue() / this.w); |
| 1555 | |
| 1556 | Vec4 c = convertToVec4(b); |
| 1557 | if (c != null) |
| 1558 | return new Vec4( c.x / this.x, c.y / this.y, c.z / this.z, c.w / this.w); |
| 1559 | |
| 1560 | if (b instanceof Quat) { |
| 1561 | return ((Quat) b).transform(this, new Vec4()); |
| 1562 | } |
| 1563 | |
| 1564 | if (b instanceof Vec4) { |
| 1565 | return this.div((Vec4) b); |
| 1566 | } |
| 1567 | |
| 1568 | throw new ClassCastException(" can't divide '" + b + "' by a Vec3 (" + this + ")"); |
| 1569 | |
| 1570 | } |
| 1571 | |
| 1572 | @Override |
nothing calls this directly
no test coverage detected