PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\math\Vector2 Class Reference
+ Collaboration diagram for pocketmine\math\Vector2:

Public Member Functions

 __construct ($x=0, $y=0)
 
 getX ()
 
 getY ()
 
 getFloorX ()
 
 getFloorY ()
 
 add ($x, $y=0)
 
 subtract ($x, $y=0)
 
 ceil ()
 
 floor ()
 
 round ()
 
 abs ()
 
 multiply ($number)
 
 divide ($number)
 
 distance ($x, $y=0)
 
 distanceSquared ($x, $y=0)
 
 length ()
 
 lengthSquared ()
 
 normalize ()
 
 dot (Vector2 $v)
 
 __toString ()
 

Public Attributes

 $x
 
 $y
 

Detailed Description

WARNING: This class is available on the PocketMine-MP Zephir project. If this class is modified, remember to modify the PHP C extension.

Definition at line 28 of file Vector2.php.


The documentation for this class was generated from the following file: