PHP 클래스 Grafika\DrawingObject\CubicBezier

파일 보기 프로젝트 열기: kosinix/grafika

보호된 프로퍼티들

프로퍼티 타입 설명
$color Grafika\Color Color of curve.
$control1 array Control point 1. Array of X Y values.
$control2 array Control point 2. Array of X Y values.
$point1 array Starting point. Array of X Y values.
$point2 array End point. Array of X Y values.

공개 메소드들

메소드 설명
__construct ( array $point1, array $control1, array $control2, array $point2, Color | string $color = '#000000' ) Creates a cubic bezier. Cubic bezier has 2 control points.
getColor ( ) : Color
getControl1 ( ) : array
getControl2 ( ) : array
getPoint1 ( ) : array
getPoint2 ( ) : array

메소드 상세

__construct() 공개 메소드

Creates a cubic bezier. Cubic bezier has 2 control points.
public __construct ( array $point1, array $control1, array $control2, array $point2, Color | string $color = '#000000' )
$point1 array Array of X and Y value for start point.
$control1 array Array of X and Y value for control point 1.
$control2 array Array of X and Y value for control point 2.
$point2 array Array of X and Y value for end point.
$color Grafika\Color | string Color of the curve. Accepts hex string or a Color object. Defaults to black.

getColor() 공개 메소드

public getColor ( ) : Color
리턴 Grafika\Color

getControl1() 공개 메소드

public getControl1 ( ) : array
리턴 array

getControl2() 공개 메소드

public getControl2 ( ) : array
리턴 array

getPoint1() 공개 메소드

public getPoint1 ( ) : array
리턴 array

getPoint2() 공개 메소드

public getPoint2 ( ) : array
리턴 array

프로퍼티 상세

$color 보호되어 있는 프로퍼티

Color of curve.
protected Color,Grafika $color
리턴 Grafika\Color

$control1 보호되어 있는 프로퍼티

Control point 1. Array of X Y values.
protected array $control1
리턴 array

$control2 보호되어 있는 프로퍼티

Control point 2. Array of X Y values.
protected array $control2
리턴 array

$point1 보호되어 있는 프로퍼티

Starting point. Array of X Y values.
protected array $point1
리턴 array

$point2 보호되어 있는 프로퍼티

End point. Array of X Y values.
protected array $point2
리턴 array