Skip to content

Commit

Permalink
Update AxisAlignedBB.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps authored Dec 9, 2024
1 parent 0af1955 commit 090f197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AxisAlignedBB.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function contractedCopy(float $x, float $y, float $z) : AxisAlignedBB{

/**
* Returns a copy of the AxisAlignedBB extended in the given direction.
*
*
* @param float $distance Negative values pull the face in, positive values push out.
*/
public function extendedCopy(Facing $face, float $distance) : AxisAlignedBB{
Expand All @@ -164,18 +164,18 @@ public function extendedCopy(Facing $face, float $distance) : AxisAlignedBB{
}

/**
* @param float $distance Positive values pull the face in, negative values push out.
*
* Inverse of extendedCopy().
* @see AxisAlignedBB::extendedCopy()
*
* @param float $distance Positive values pull the face in, negative values push out.
*/
public function trimmedCopy(Facing $face, float $distance) : AxisAlignedBB{
return $this->extendedCopy($face, -$distance);
}

/**
* Returns a copy of the AxisAlignedBB stretched along the given axis.
*
*
* @param float $distance Negative values reduce width, positive values increase width.
*/
public function stretchedCopy(Axis $axis, float $distance) : AxisAlignedBB{
Expand Down

0 comments on commit 090f197

Please sign in to comment.