PHP 클래스 JansenFelipe\OMR\Point

파일 보기 프로젝트 열기: jansenfelipe/omr 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

getX() 공개 메소드

Position X
public getX ( ) : float
리턴 float

getY() 공개 메소드

Position Y
public getY ( ) : float
리턴 float

moveX() 공개 메소드

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

moveY() 공개 메소드

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

setX() 공개 메소드

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

setY() 공개 메소드

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