Skip to content

Commit

Permalink
CuboidShape solid stream is now in the ZXY order
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Sep 23, 2017
1 parent ea6bb94 commit 5964e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgeom/src/sofe/libgeom/shapes/CuboidShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ public function getMaxZ() : int{
}

public function getSolidStream(Vector3 $vector) : \Generator{
for($vector->x = $this->min->x; $vector->x <= $this->max->x; ++$vector->x){
for($vector->y = $this->min->y; $vector->y <= $this->max->y; ++$vector->y){
for($vector->y = $this->min->y; $vector->y <= $this->max->y; ++$vector->y){
for($vector->x = $this->min->x; $vector->x <= $this->max->x; ++$vector->x){
for($vector->z = $this->min->z; $vector->z <= $this->max->z; ++$vector->z){
yield true;
}
Expand Down

0 comments on commit 5964e0f

Please sign in to comment.