Phpcraft
|
Public Member Functions | |
__construct (float $x=0, float $y=0, float $z=0) | |
multiply ($arg) | |
distance (Point3D $dest) | |
add ($other_point3d_or_x, float $y=null, float $z=null) | |
lookAt (Point3D $b) | |
subtract ($other_point3d_or_x, float $y=null, float $z=null) | |
floor () | |
round () | |
ceil () | |
block () | |
blockCenter () | |
equals (Point3D $b) | |
invert () | |
__toString () | |
Static Public Member Functions | |
static | getUnitVector (float $yaw, float $pitch) |
Public Attributes | |
$x = 0 | |
$y = 0 | |
$z = 0 | |
A point in three-dimensional space, or a three-dimensional vector. Whatever you want it to be.
Phpcraft\Point3D::__construct | ( | float | $x = 0 , |
float | $y = 0 , |
||
float | $z = 0 |
||
) |
Phpcraft\Point3D::__toString | ( | ) |
Phpcraft\Point3D::add | ( | $other_point3d_or_x, | |
float | $y = null , |
||
float | $z = null |
||
) |
Phpcraft\Point3D::block | ( | ) |
Floors all axes and adds 0.5 to the X & Z axes.
Phpcraft\Point3D::blockCenter | ( | ) |
Floors and adds 0.5 to all axes.
Phpcraft\Point3D::ceil | ( | ) |
Phpcraft\Point3D::distance | ( | Point3D | $dest | ) |
Phpcraft\Point3D::equals | ( | Point3D | $b | ) |
Phpcraft\Point3D::floor | ( | ) |
|
static |
Phpcraft\Point3D::invert | ( | ) |
Phpcraft\Point3D::multiply | ( | $arg | ) |
Phpcraft\Point3D::round | ( | ) |
Phpcraft\Point3D::subtract | ( | $other_point3d_or_x, | |
float | $y = null , |
||
float | $z = null |
||
) |
double Phpcraft\Point3D::$x = 0 |
double Phpcraft\Point3D::$y = 0 |
double Phpcraft\Point3D::$z = 0 |