Documentation Build v9.18

Bezier
in package

Table of Contents

Methods

__construct()  : mixed
Get()  : mixed
Return a set of data points that specifies the bezier curve with $steps points
GetPoint()  : mixed
Return one point on the bezier curve. $mu is the position on the curve where $mu is in the range 0 $mu < 1 where 0 is tha start point and 1 is the end point. Note that every newly computed point depends on all the existing points

Methods

__construct()

public __construct(mixed $datax, mixed $datay[, mixed $attraction_factor = 1 ]) : mixed
Parameters
$datax : mixed
$datay : mixed
$attraction_factor : mixed = 1

Get()

Return a set of data points that specifies the bezier curve with $steps points

public Get(mixed $steps) : mixed
Parameters
$steps : mixed

Number of new points to return

Tags
@return

array($datax, $datay)

GetPoint()

Return one point on the bezier curve. $mu is the position on the curve where $mu is in the range 0 $mu < 1 where 0 is tha start point and 1 is the end point. Note that every newly computed point depends on all the existing points

public GetPoint(mixed $mu) : mixed
Parameters
$mu : mixed

Position on the bezier curve

Tags
@return

array($x, $y)

On this page

Search results