getPN method
Implementation
void getPN(Vector3 planeNormal, Vector3 outP, Vector3 outN) {
if (planeNormal.x < 0.0) {
outP.x = _min.x;
outN.x = _max.x;
} else {
outP.x = _max.x;
outN.x = _min.x;
}
if (planeNormal.y < 0.0) {
outP.y = _min.y;
outN.y = _max.y;
} else {
outP.y = _max.y;
outN.y = _min.y;
}
if (planeNormal.z < 0.0) {
outP.z = _min.z;
outN.z = _max.z;
} else {
outP.z = _max.z;
outN.z = _min.z;
}
}