(Object b)
| 1420 | |
| 1421 | } |
| 1422 | |
| 1423 | @Override |
| 1424 | public Object __sub__(Object b) { |
| 1425 | Vec4 c = convertToVec4(b); |
| 1426 | if (c != null) |
| 1427 | return new Vec4(this.x - c.x, this.y - c.y, this.z - c.z, this.w - c.w); |
| 1428 | |
| 1429 | if (b instanceof Quat) { |
| 1430 | return ((Quat) b).transform(this, new Vec4()); |
| 1431 | } |
| 1432 | if (b instanceof Vec4) { |
| 1433 | return this.add((Vec4) b); |
| 1434 | } |
| 1435 | |
| 1436 | if (b instanceof OverloadedMath) |
| 1437 | return ((OverloadedMath) b).__rsub__(this); |
| 1438 | |
| 1439 | throw new ClassCastException(" can't sub '" + b + "' by a Vec3 (" + this + ")"); |
| 1440 | |
| 1441 | } |
| 1442 | |
| 1443 |
nothing calls this directly
no test coverage detected