PHP Class pocketmine\math\Vector3

If this class is modified, remember to modify the PHP C extension.
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Свойство Type Description
$x
$y
$z

Méthodes publiques

Méthode Description
__construct ( $x, $y, $z )
__toString ( )
abs ( )
add ( Vector3 | integer $x, integer $y, integer $z ) : Vector3
ceil ( )
createRandomDirection ( Random $random )
cross ( Vector3 $v )
distance ( Vector3 $pos )
distanceSquared ( Vector3 $pos )
divide ( $number )
dot ( Vector3 $v )
equals ( Vector3 $v )
floor ( )
fromObjectAdd ( Vector3 $pos, $x, $y, $z )
getFloorX ( )
getFloorY ( )
getFloorZ ( )
getForward ( )
getIntermediateWithXValue ( Vector3 $v, float $x ) : Vector3 Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
getIntermediateWithYValue ( Vector3 $v, float $y ) : Vector3 Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
getIntermediateWithZValue ( Vector3 $v, float $z ) : Vector3 Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
getOppositeSide ( $side )
getRight ( )
getSide ( $side, $step = 1 )
getSouth ( )
getUp ( )
getWest ( )
getX ( )
getY ( )
getZ ( )
length ( )
lengthSquared ( )
maxPlainDistance ( $x, $z )
multiply ( $number )
normalize ( ) : Vector3
round ( )
setComponents ( $x, $y, $z ) : Vector3
subtract ( Vector3 | integer $x, integer $y, integer $z ) : Vector3

Method Details

__construct() public méthode

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

__toString() public méthode

public __toString ( )

abs() public méthode

public abs ( )

add() public méthode

public add ( Vector3 | integer $x, integer $y, integer $z ) : Vector3
$x Vector3 | integer
$y integer
$z integer
Résultat Vector3

ceil() public méthode

public ceil ( )

createRandomDirection() public static méthode

public static createRandomDirection ( Random $random )
$random pocketmine\utils\Random

cross() public méthode

public cross ( Vector3 $v )
$v Vector3

distance() public méthode

public distance ( Vector3 $pos )
$pos Vector3

distanceSquared() public méthode

public distanceSquared ( Vector3 $pos )
$pos Vector3

divide() public méthode

public divide ( $number )

dot() public méthode

public dot ( Vector3 $v )
$v Vector3

equals() public méthode

public equals ( Vector3 $v )
$v Vector3

floor() public méthode

public floor ( )

fromObjectAdd() public méthode

public fromObjectAdd ( Vector3 $pos, $x, $y, $z )
$pos Vector3
$x
$y
$z

getFloorX() public méthode

public getFloorX ( )

getFloorY() public méthode

public getFloorY ( )

getFloorZ() public méthode

public getFloorZ ( )

getForward() public méthode

public getForward ( )

getIntermediateWithXValue() public méthode

Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
public getIntermediateWithXValue ( Vector3 $v, float $x ) : Vector3
$v Vector3
$x float
Résultat Vector3

getIntermediateWithYValue() public méthode

Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
public getIntermediateWithYValue ( Vector3 $v, float $y ) : Vector3
$v Vector3
$y float
Résultat Vector3

getIntermediateWithZValue() public méthode

Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.
public getIntermediateWithZValue ( Vector3 $v, float $z ) : Vector3
$v Vector3
$z float
Résultat Vector3

getOppositeSide() public static méthode

public static getOppositeSide ( $side )

getRight() public méthode

public getRight ( )

getSide() public méthode

public getSide ( $side, $step = 1 )

getSouth() public méthode

public getSouth ( )

getUp() public méthode

public getUp ( )

getWest() public méthode

public getWest ( )

getX() public méthode

public getX ( )

getY() public méthode

public getY ( )

getZ() public méthode

public getZ ( )

length() public méthode

public length ( )

lengthSquared() public méthode

public lengthSquared ( )

maxPlainDistance() public méthode

public maxPlainDistance ( $x, $z )

multiply() public méthode

public multiply ( $number )

normalize() public méthode

public normalize ( ) : Vector3
Résultat Vector3

round() public méthode

public round ( )

setComponents() public méthode

public setComponents ( $x, $y, $z ) : Vector3
$x
$y
$z
Résultat Vector3

subtract() public méthode

public subtract ( Vector3 | integer $x, integer $y, integer $z ) : Vector3
$x Vector3 | integer
$y integer
$z integer
Résultat Vector3

Property Details

$x public_oe property

public $x

$y public_oe property

public $y

$z public_oe property

public $z