PHP Class JansenFelipe\OMR\Point

Afficher le fichier Open project: jansenfelipe/omr Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( float $x, float $y ) Constructor
getX ( ) : float Position X
getY ( ) : float Position Y
moveX ( integer $position ) : Point Move the point at $position on the X axis
moveY ( integer $position ) : Point Move the point at $position on the Y axis
setX ( float $x ) Position X
setY ( float $y ) Position Y

Method Details

__construct() public méthode

Constructor
public __construct ( float $x, float $y )
$x float
$y float

getX() public méthode

Position X
public getX ( ) : float
Résultat float

getY() public méthode

Position Y
public getY ( ) : float
Résultat float

moveX() public méthode

Move the point at $position on the X axis
public moveX ( integer $position ) : Point
$position integer
Résultat Point

moveY() public méthode

Move the point at $position on the Y axis
public moveY ( integer $position ) : Point
$position integer
Résultat Point

setX() public méthode

Position X
public setX ( float $x )
$x float

setY() public méthode

Position Y
public setY ( float $y )
$y float