|
| __construct ($x=0, $y=0, $z=0, $yaw=0.0, $pitch=0.0, Level $level=null) |
|
| getYaw () |
|
| getPitch () |
|
| __toString () |
|
| __construct ($x=0, $y=0, $z=0, Level $level=null) |
|
| getLevel () |
|
| setLevel (Level $level) |
|
| isValid () |
|
| setStrong () |
|
| setWeak () |
|
| getSide ($side, $step=1) |
|
| __toString () |
|
| setComponents ($x, $y, $z) |
|
| __construct ($x=0, $y=0, $z=0) |
|
| getX () |
|
| getY () |
|
| getZ () |
|
| getFloorX () |
|
| getFloorY () |
|
| getFloorZ () |
|
| getRight () |
|
| getUp () |
|
| getForward () |
|
| getSouth () |
|
| getWest () |
|
| add ($x, $y=0, $z=0) |
|
| subtract ($x=0, $y=0, $z=0) |
|
| multiply ($number) |
|
| divide ($number) |
|
| ceil () |
|
| floor () |
|
| round () |
|
| abs () |
|
| getSide ($side, $step=1) |
|
| distance (Vector3 $pos) |
|
| distanceSquared (Vector3 $pos) |
|
| maxPlainDistance ($x=0, $z=0) |
|
| length () |
|
| lengthSquared () |
|
| normalize () |
|
| dot (Vector3 $v) |
|
| cross (Vector3 $v) |
|
| equals (Vector3 $v) |
|
| getIntermediateWithXValue (Vector3 $v, $x) |
|
| getIntermediateWithYValue (Vector3 $v, $y) |
|
| getIntermediateWithZValue (Vector3 $v, $z) |
|
| setComponents ($x, $y, $z) |
|
| __toString () |
|
|
| $yaw |
|
| $pitch |
|
| $level = null |
|
const | SIDE_DOWN = 0 |
|
const | SIDE_UP = 1 |
|
const | SIDE_NORTH = 2 |
|
const | SIDE_SOUTH = 3 |
|
const | SIDE_WEST = 4 |
|
const | SIDE_EAST = 5 |
|
| $x |
|
| $y |
|
| $z |
|
__construct |
( |
|
$x = 0 , |
|
|
|
$y = 0 , |
|
|
|
$z = 0 , |
|
|
|
$yaw = 0.0 , |
|
|
|
$pitch = 0.0 , |
|
|
Level |
$level = null |
|
) |
| |
- Parameters
-
int | $x | |
int | $y | |
int | $z | |
float | $yaw | |
float | $pitch | |
Level | $level | |
static fromObject |
( |
Vector3 |
$pos, |
|
|
Level |
$level = null , |
|
|
|
$yaw = 0.0 , |
|
|
|
$pitch = 0.0 |
|
) |
| |
|
static |
- Parameters
-
Vector3 | $pos | |
Level | null | $level | default null |
float | $yaw | default 0.0 |
float | $pitch | default 0.0 |
The documentation for this class was generated from the following file:
- /Users/Kids/Desktop/Doxygen/pocketmine/level/Location.php