We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e212ce7 commit e3fe09aCopy full SHA for e3fe09a
src/Facing.php
@@ -124,14 +124,23 @@ public function rotate(Axis $axis, bool $clockwise) : Facing{
124
return $clockwise ? $rotated : $rotated->opposite();
125
}
126
127
+ /**
128
+ * @throws \InvalidArgumentException
129
+ */
130
public function rotateY(bool $clockwise) : Facing{
131
return $this->rotate(Axis::Y, $clockwise);
132
133
134
135
136
137
public function rotateZ(bool $clockwise) : Facing{
138
return $this->rotate(Axis::Z, $clockwise);
139
140
141
142
143
144
public function rotateX(bool $clockwise) : Facing{
145
return $this->rotate(Axis::X, $clockwise);
146
0 commit comments