tx:Number [write-only]
[set] tx Assign x-coordinate of start tangent
Implementation
public function set tx(value:Number):void
ty:Number [write-only]
[set] y0 Assign y-coordinate of start tangent
Implementation
public function set ty(value:Number):void
x0:Number [write-only]
[set] x0 Assign x-coordinate of first interpolation point
Implementation
public function set x0(value:Number):void
x1:Number [write-only]
[set] x1 Assign x-coordinate of second interpolation point
Implementation
public function set x1(value:Number):void
y0:Number [write-only]
[set] y0 Assign y-coordinate of first interpolation point
Implementation
public function set y0(value:Number):void
y1:Number [write-only]
[set] y1 Assign y-coordinate of second interpolation point
Implementation
public function set y1(value:Number):void
public function QuadraticHermiteCurve(_x0:Number = 0, _y0:Number = 0, _x1:Number = 0, _y1:Number = 0, _tx:Number = 0, _ty:Number = 0)
QuadraticHermitCurve Construct a new QuadraticHeriteCurve instance.
Parameters
| _x0:Number (default = 0) — x-coordinate of first interpolation point
|
| |
| _y0:Number (default = 0) — y-coordinate of first interpolation point
|
| |
| _x1:Number (default = 0) — x-coordinate of second inpterolation point
|
| |
| _y1:Number (default = 0) — y-coordinate of second interpolation point
|
| |
| _tx:Number (default = 0) — x-coordinate of start tangent (tangent to first interpolation point)
|
| |
| _ty:Number (default = 0) — y-coordinate of start tangent (tangent to first interpolation point)
|
public function getCoef():Object
Returns
public function getX(_t:Number):Number
getX Access the x-coordinate of the curve at the specified t-parameter
Parameters
| _t:Number — t-paramter in [0,1].
|
Returns
| Number — Number x-coordinate of quadratic Hermite curve at the specified t-parameter. Extrapolating outside [0.1] is allowed, but not recommended. Assign
interpolation points and start tangent before calling this method.
|
public function getXPrime(_t:Number):Number
getXPrime Access the x-coordinate of dx/dt at the specified t-parameter
Parameters
| _t:Number — t-paramter in [0,1].
|
Returns
| Number — Number x-coordinate of dx/dt at the specified t-parameter. Extrapolating outside [0.1] is allowed, but not recommended. Assign
interpolation points and start tangent before calling this method.
|
public function getY(_t:Number):Number
getY Access the y-coordinate of the curve at the specified t-parameter
Parameters
| _t:Number — t-paramter in [0,1].
|
Returns
| Number — Number y-coordinate of quadratic Hermite curve at the specified t-parameter. Extrapolating outside [0.1] is allowed, but not recommended. Assign
interpolation points and start tangent before calling this method.
|
public function getYPrime(_t:Number):Number
getYPrime Access the x-coordinate of dy/dt at the specified t-parameter
Parameters
| _t:Number — t-paramter in [0,1].
|
Returns
| Number — Number y-coordinate of dy/dt at the specified t-parameter. Extrapolating outside [0.1] is allowed, but not recommended. Assign
interpolation points and start tangent before calling this method.
|