remove unused crossProduct() method doing allocation

This commit is contained in:
Cerrato Renaud
2016-09-12 12:59:26 -04:00
parent 306ecaee95
commit 228e7021ff

View File

@@ -243,13 +243,7 @@ public class Vector3f {
outputVec.setY(points[2] * inputVec.points[0] - points[0] * inputVec.points[2]); outputVec.setY(points[2] * inputVec.points[0] - points[0] * inputVec.points[2]);
outputVec.setZ(points[0] * inputVec.points[1] - points[1] * inputVec.points[0]); outputVec.setZ(points[0] * inputVec.points[1] - points[1] * inputVec.points[0]);
} }
public Vector3f crossProduct(Vector3f in) {
Vector3f out = new Vector3f();
crossProduct(in, out);
return out;
}
/** /**
* If you need to get the length of a vector then use this function. * If you need to get the length of a vector then use this function.
* *