public function isVectorInside(Vector3 $vector)
{
if ($vector->x <= $this->minX or $vector->x >= $this->maxX) {
return false;
}
if ($vector->y <= $this->minY or $vector->y >= $this->maxY) {
return false;
}
return $vector->z > $this->minZ and $vector->z < $this->maxZ;
}