PHP Class pocketmine\math\Vector2

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

Méthodes publiques

Méthode Description
__construct ( $x, $y )
__toString ( )
abs ( )
add ( $x, $y )
ceil ( )
createRandomDirection ( Random $random )
distance ( $x, $y )
distanceSquared ( $x, $y )
divide ( $number )
dot ( Vector2 $v )
floor ( )
getFloorX ( )
getFloorY ( )
getX ( )
getY ( )
length ( )
lengthSquared ( )
multiply ( $number )
normalize ( )
round ( )
subtract ( $x, $y )

Method Details

__construct() public méthode

public __construct ( $x, $y )

__toString() public méthode

public __toString ( )

abs() public méthode

public abs ( )

add() public méthode

public add ( $x, $y )

ceil() public méthode

public ceil ( )

createRandomDirection() public static méthode

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

distance() public méthode

public distance ( $x, $y )

distanceSquared() public méthode

public distanceSquared ( $x, $y )

divide() public méthode

public divide ( $number )

dot() public méthode

public dot ( Vector2 $v )
$v Vector2

floor() public méthode

public floor ( )

getFloorX() public méthode

public getFloorX ( )

getFloorY() public méthode

public getFloorY ( )

getX() public méthode

public getX ( )

getY() public méthode

public getY ( )

length() public méthode

public length ( )

lengthSquared() public méthode

public lengthSquared ( )

multiply() public méthode

public multiply ( $number )

normalize() public méthode

public normalize ( )

round() public méthode

public round ( )

subtract() public méthode

public subtract ( $x, $y )

Property Details

$x public_oe property

public $x

$y public_oe property

public $y