PHP Class pocketmine\math\AxisAlignedBB

Mostra file Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Properties

Property Type Description
$maxX
$maxY
$maxZ
$minX
$minY
$minZ

Public Methods

Method Description
__construct ( $minX, $minY, $minZ, $maxX, $maxY, $maxZ )
__toString ( )
addCoord ( $x, $y, $z )
calculateIntercept ( Vector3 $pos1, Vector3 $pos2 )
calculateXOffset ( AxisAlignedBB $bb, $x )
calculateYOffset ( AxisAlignedBB $bb, $y )
calculateZOffset ( AxisAlignedBB $bb, $z )
contract ( $x, $y, $z )
expand ( $x, $y, $z )
getAverageEdgeLength ( )
getOffsetBoundingBox ( $x, $y, $z )
grow ( $x, $y, $z )
intersectsWith ( AxisAlignedBB $bb )
isVectorInXY ( Vector3 $vector )
isVectorInXZ ( Vector3 $vector )
isVectorInYZ ( Vector3 $vector )
isVectorInside ( Vector3 $vector )
offset ( $x, $y, $z )
setBB ( AxisAlignedBB $bb )
setBounds ( $minX, $minY, $minZ, $maxX, $maxY, $maxZ )
shrink ( $x, $y, $z )

Method Details

__construct() public method

public __construct ( $minX, $minY, $minZ, $maxX, $maxY, $maxZ )

__toString() public method

public __toString ( )

addCoord() public method

public addCoord ( $x, $y, $z )

calculateIntercept() public method

public calculateIntercept ( Vector3 $pos1, Vector3 $pos2 )
$pos1 Vector3
$pos2 Vector3

calculateXOffset() public method

public calculateXOffset ( AxisAlignedBB $bb, $x )
$bb AxisAlignedBB

calculateYOffset() public method

public calculateYOffset ( AxisAlignedBB $bb, $y )
$bb AxisAlignedBB

calculateZOffset() public method

public calculateZOffset ( AxisAlignedBB $bb, $z )
$bb AxisAlignedBB

contract() public method

public contract ( $x, $y, $z )

expand() public method

public expand ( $x, $y, $z )

getAverageEdgeLength() public method

getOffsetBoundingBox() public method

public getOffsetBoundingBox ( $x, $y, $z )

grow() public method

public grow ( $x, $y, $z )

intersectsWith() public method

public intersectsWith ( AxisAlignedBB $bb )
$bb AxisAlignedBB

isVectorInXY() public method

public isVectorInXY ( Vector3 $vector )
$vector Vector3

isVectorInXZ() public method

public isVectorInXZ ( Vector3 $vector )
$vector Vector3

isVectorInYZ() public method

public isVectorInYZ ( Vector3 $vector )
$vector Vector3

isVectorInside() public method

public isVectorInside ( Vector3 $vector )
$vector Vector3

offset() public method

public offset ( $x, $y, $z )

setBB() public method

public setBB ( AxisAlignedBB $bb )
$bb AxisAlignedBB

setBounds() public method

public setBounds ( $minX, $minY, $minZ, $maxX, $maxY, $maxZ )

shrink() public method

public shrink ( $x, $y, $z )

Property Details

$maxX public_oe property

public $maxX

$maxY public_oe property

public $maxY

$maxZ public_oe property

public $maxZ

$minX public_oe property

public $minX

$minY public_oe property

public $minY

$minZ public_oe property

public $minZ