Skip to content

Commit e3fe09a

Browse files
authored
Update Facing.php
1 parent e212ce7 commit e3fe09a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Facing.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,23 @@ public function rotate(Axis $axis, bool $clockwise) : Facing{
124124
return $clockwise ? $rotated : $rotated->opposite();
125125
}
126126

127+
/**
128+
* @throws \InvalidArgumentException
129+
*/
127130
public function rotateY(bool $clockwise) : Facing{
128131
return $this->rotate(Axis::Y, $clockwise);
129132
}
130133

134+
/**
135+
* @throws \InvalidArgumentException
136+
*/
131137
public function rotateZ(bool $clockwise) : Facing{
132138
return $this->rotate(Axis::Z, $clockwise);
133139
}
134140

141+
/**
142+
* @throws \InvalidArgumentException
143+
*/
135144
public function rotateX(bool $clockwise) : Facing{
136145
return $this->rotate(Axis::X, $clockwise);
137146
}

0 commit comments

Comments
 (0)