@@ -88,9 +88,7 @@ public function addCoord(float $x, float $y, float $z) : AxisAlignedBB{
88
88
}
89
89
90
90
/**
91
- * Outsets the bounds of this AxisAlignedBB by the specified X, Y and Z.
92
- *
93
- * Returns an expanded clone of this AxisAlignedBB.
91
+ * Returns a copy of the AxisAlignedBB with bounds outset by the specified X, Y and Z.
94
92
*/
95
93
public function expandedCopy (float $ x , float $ y , float $ z ): AxisAlignedBB {
96
94
return new AxisAlignedBB (
@@ -104,9 +102,7 @@ public function expandedCopy(float $x, float $y, float $z): AxisAlignedBB{
104
102
}
105
103
106
104
/**
107
- * Shifts this AxisAlignedBB by the given X, Y and Z.
108
- *
109
- * Returns an offset clone of this AxisAlignedBB.
105
+ * Returns a copy of the AxisAlignedBB with bounds offset by the specified X, Y and Z.
110
106
*/
111
107
public function offsetCopy (float $ x , float $ y , float $ z ) : AxisAlignedBB {
112
108
return new AxisAlignedBB (
@@ -120,9 +116,7 @@ public function offsetCopy(float $x, float $y, float $z) : AxisAlignedBB{
120
116
}
121
117
122
118
/**
123
- * Offsets this AxisAlignedBB in the given direction by the specified distance.
124
- *
125
- * Returns an offset clone of this AxisAlignedBB.
119
+ * Returns a copy of the AxisAlignedBB with bounds offset in the given direction by the specified distance.
126
120
*/
127
121
public function offsetTowardsCopy (Facing $ face , float $ distance ) : AxisAlignedBB {
128
122
[$ offsetX , $ offsetY , $ offsetZ ] = $ face ->offset ();
@@ -131,9 +125,7 @@ public function offsetTowardsCopy(Facing $face, float $distance) : AxisAlignedBB
131
125
}
132
126
133
127
/**
134
- * Insets the bounds of this AxisAlignedBB by the specified X, Y and Z.
135
- *
136
- * Returns an contracted clone of this AxisAlignedBB.
128
+ * Returns a copy of the AxisAlignedBB with bounds contracted by the specified X, Y and Z.
137
129
*/
138
130
public function contractedCopy (float $ x , float $ y , float $ z ) : AxisAlignedBB {
139
131
return new AxisAlignedBB (
@@ -147,11 +139,9 @@ public function contractedCopy(float $x, float $y, float $z) : AxisAlignedBB{
147
139
}
148
140
149
141
/**
150
- * Extends the AABB in the given direction.
151
- *
152
142
* @param float $distance Negative values pull the face in, positive values push out.
153
143
*
154
- * Returns an extended clone of this AxisAlignedBB.
144
+ * Returns a copy of the AxisAlignedBB with bounds extended in the given direction .
155
145
*/
156
146
public function extendedCopy (Facing $ face , float $ distance ) : AxisAlignedBB {
157
147
$ minX = $ this ->minX ;
@@ -174,23 +164,21 @@ public function extendedCopy(Facing $face, float $distance) : AxisAlignedBB{
174
164
}
175
165
176
166
/**
177
- * Inverse of extend().
178
- * @see AxisAlignedBB::extendedCopy()
179
- *
180
167
* @param float $distance Positive values pull the face in, negative values push out.
181
168
*
182
- * Returns an trimmed clone of this AxisAlignedBB.
169
+ * Returns a copy of the AxisAlignedBB with bounds trimmed in the given direction.
170
+ *
171
+ * Inverse of extend().
172
+ * @see AxisAlignedBB::extendedCopy()
183
173
*/
184
174
public function trimmedCopy (Facing $ face , float $ distance ) : AxisAlignedBB {
185
175
return $ this ->extendedCopy ($ face , -$ distance );
186
176
}
187
177
188
178
/**
189
- * Increases the dimension of the AABB along the given axis.
190
- *
191
179
* @param float $distance Negative values reduce width, positive values increase width.
192
180
*
193
- * Returns an stretched clone of this AxisAlignedBB.
181
+ * Returns a copy of the AxisAlignedBB with bounds stretched along the given axis .
194
182
*/
195
183
public function stretchedCopy (Axis $ axis , float $ distance ) : AxisAlignedBB {
196
184
$ minX = $ this ->minX ;
@@ -215,10 +203,10 @@ public function stretchedCopy(Axis $axis, float $distance) : AxisAlignedBB{
215
203
}
216
204
217
205
/**
218
- * Reduces the dimension of the AABB on the given axis. Inverse of stretch().
206
+ * Returns a copy of the AxisAlignedBB with bounds squashed along the given axis.
207
+ *
208
+ * Inverse of stretch().
219
209
* @see AxisAlignedBB::stretchedCopy()
220
- *
221
- * Returns an squashed clone of this AxisAlignedBB.
222
210
*/
223
211
public function squashedCopy (Axis $ axis , float $ distance ) : AxisAlignedBB {
224
212
return $ this ->stretchedCopy ($ axis , -$ distance );
0 commit comments