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

Method convertToVec2

src/main/java/field/linalg/Vec2.java:1419–1425  ·  view source on GitHub ↗
(Object b)

Source from the content-addressed store, hash-verified

1417 }
1418
1419 private Vec2 convertToVec2(Object b) {
1420 if (b instanceof Vec2) return ((Vec2) b);
1421 if (b instanceof Number)
1422 return new Vec2(((Number) b).doubleValue(), ((Number) b).doubleValue());
1423 // Vec4 — ??
1424 return null;
1425 }
1426
1427 @Override
1428 public Object __sub__(Object b) {

Callers 8

__sub__Method · 0.95
__rsub__Method · 0.95
__add__Method · 0.95
__radd__Method · 0.95
__mul__Method · 0.95
__rmul__Method · 0.95
__div__Method · 0.95
__rdiv__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected