PHP Class JansenFelipe\OMR\Point

Show file Open project: jansenfelipe/omr Class Usage Examples

Public Methods

Method 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 method

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

getX() public method

Position X
public getX ( ) : float
return float

getY() public method

Position Y
public getY ( ) : float
return float

moveX() public method

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

moveY() public method

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

setX() public method

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

setY() public method

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