(Object b)
| 2251 | } else if (b instanceof Vec2) { |
| 2252 | Vec3 finalB = ((Vec2) b).toVec3(); |
| 2253 | return byTransforming(x -> new Vec3(x).mul(finalB)); |
| 2254 | } else if (b instanceof Vec3) { |
| 2255 | Vec3 finalB = (Vec3) b; |
| 2256 | return byTransforming(x -> new Vec3(x).mul(finalB)); |
| 2257 | } else if (b instanceof Quat) { |
| 2258 | Quat finalB = (Quat) b; |
| 2259 | return byTransforming(x -> finalB.transform(x, new Vec3())); |
| 2260 | } else if (b instanceof FLine) { |
| 2261 | Shape s1 = FLinesAndJavaShapes.flineToJavaShape(this); |
| 2262 | Shape s2 = FLinesAndJavaShapes.flineToJavaShape((FLine) b); |
| 2263 | |
| 2264 | Area a1 = new Area(s1); |
| 2265 | Area a2 = new Area(s2); |
| 2266 | a1.intersect(a2); |
| 2267 | FLine ret = FLinesAndJavaShapes.javaShapeToFLine(a1); |
| 2268 | ret.attributes = this.attributes.duplicate(ret); |
| 2269 | return ret; |
| 2270 | } |
| 2271 | throw new ClassCastException(" can't multiply '" + b + "' to this FLine"); |
| 2272 | } |
| 2273 | |
| 2274 | @Override |
| 2275 | @HiddenInAutocomplete |
| 2276 | public Object __rdiv__(Object b) { |
| 2277 | if (b instanceof Number) { |
| 2278 | return byTransforming(x -> new Vec3(((Number) b).doubleValue() / x.x, ((Number) b).doubleValue() / x.y, ((Number) b).doubleValue() / x.z)); |
| 2279 | } else if (b instanceof Vec2) { |
| 2280 | Vec3 finalB = ((Vec2) b).toVec3(); |
| 2281 | return byTransforming(x -> new Vec3(finalB).div(x)); |
| 2282 | } else if (b instanceof Vec3) { |
nothing calls this directly
no test coverage detected