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

Method toVec4

src/main/java/field/linalg/Vec2.java:1315–1317  ·  view source on GitHub ↗

Converts this Vec2 to a Vec4 (with z=0, w=0) @return Vec4(this.x, this.y, 0, 0)

()

Source from the content-addressed store, hash-verified

1313 * @return Vec4(this.x, this.y, 0, 0)
1314 */
1315 public Vec4 toVec4() {
1316 return new Vec4(this, 0, 0);
1317 }
1318
1319 /**
1320 * returns true if any component of this Double.isNaN

Callers 9

__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
convertToVec4Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected