expandToInclude method
void
expandToInclude(
- Vector3 point
Implementation
void expandToInclude(Vector3 point) {
min = Vector3(
point.x < min.x ? point.x : min.x,
point.y < min.y ? point.y : min.y,
point.z < min.z ? point.z : min.z,
);
max = Vector3(
point.x > max.x ? point.x : max.x,
point.y > max.y ? point.y : max.y,
point.z > max.z ? point.z : max.z,
);
}