calculateCorners method
Calculate the corners of this and write them into corner0
to
Implementation
// [corner7].
void calculateCorners(
Vector3 corner0,
Vector3 corner1,
Vector3 corner2,
Vector3 corner3,
Vector3 corner4,
Vector3 corner5,
Vector3 corner6,
Vector3 corner7) {
Plane.intersection(_plane0, _plane2, _plane4, corner0);
Plane.intersection(_plane0, _plane3, _plane4, corner1);
Plane.intersection(_plane0, _plane3, _plane5, corner2);
Plane.intersection(_plane0, _plane2, _plane5, corner3);
Plane.intersection(_plane1, _plane2, _plane4, corner4);
Plane.intersection(_plane1, _plane3, _plane4, corner5);
Plane.intersection(_plane1, _plane3, _plane5, corner6);
Plane.intersection(_plane1, _plane2, _plane5, corner7);
}