PocketMine
Vector2 Class Reference

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 ()
 

Data Fields

 $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.


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