MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / copyAttributesFrom

Method copyAttributesFrom

src/main/java/field/graphics/FLine.java:1916–1920  ·  view source on GitHub ↗
(FLine fLine)

Source from the content-addressed store, hash-verified

1914
1915 @Override
1916 @HiddenInAutocomplete
1917 public Object __rsub__(Object b) {
1918 if (b instanceof Vec2) {
1919 Vec3 finalB = ((Vec2) b).toVec3();
1920 return byTransforming(x -> new Vec3(x).sub(finalB));
1921 } else if (b instanceof Vec3) {
1922 Vec3 finalB = (Vec3) b;
1923 return byTransforming(x -> new Vec3(x).sub(finalB));

Callers 5

byInsettingMethod · 0.95
__sub__Method · 0.80
__add__Method · 0.80
__mul__Method · 0.80
__div__Method · 0.80

Calls 1

duplicateMethod · 0.65

Tested by

no test coverage detected