Property | Type | Description | |
---|---|---|---|
$x | |||
$y |
Method | Description | |
---|---|---|
__construct ( $x, $y ) | ||
__toString ( ) | ||
abs ( ) | ||
add ( $x, $y ) | ||
ceil ( ) | ||
createRandomDirection ( |
||
distance ( $x, $y ) | ||
distanceSquared ( $x, $y ) | ||
divide ( $number ) | ||
dot ( |
||
floor ( ) | ||
getFloorX ( ) | ||
getFloorY ( ) | ||
getX ( ) | ||
getY ( ) | ||
length ( ) | ||
lengthSquared ( ) | ||
multiply ( $number ) | ||
normalize ( ) | ||
round ( ) | ||
subtract ( $x, $y ) |
public static createRandomDirection ( |
||
$random |