Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
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 ()
 

Static Public Member Functions

static createRandomDirection (Random $random)
 

Data Fields

 $x
 
 $y
 

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