Searched refs:centre (Results 1 – 1 of 1) sorted by relevance
229 private ArrayList<float[]> calculateRectangleHitbox(float[] centre, float[] rotation) { in calculateRectangleHitbox() argument241 midFront[X] = centre[X] + (lengthScaleFactor * rotation[X]); in calculateRectangleHitbox()242 midFront[Y] = centre[Y] + (lengthScaleFactor * rotation[Y]); in calculateRectangleHitbox()244 midRear[X] = centre[X] + (lengthScaleFactor * rotationInverse[X]); in calculateRectangleHitbox()245 midRear[Y] = centre[Y] + (lengthScaleFactor * rotationInverse[Y]); in calculateRectangleHitbox()248 frontLeft[Z] = centre[Z]; in calculateRectangleHitbox()252 frontRight[Z] = centre[Z]; in calculateRectangleHitbox()256 rearLeft[Z] = centre[Z]; in calculateRectangleHitbox()260 rearRight[Z] = centre[Z]; in calculateRectangleHitbox()