Méthode | Description | |
---|---|---|
getFirstDerivative ( |
gets the first derivative for a cubic bezier
|
|
getFirstDerivative ( |
gets the first derivative for a quadratic bezier
|
|
getOptimizedDrawingPoints ( |
recursively subdivides a bezier curve until distanceTolerance is met. Flat sections will have less points then curved with this algorithm. Returns a pooled list that should be returned to the ListPool when done.
|
|
getPoint ( |
evaluate a cubic bezier
|
|
getPoint ( |
evaluate quadratic bezier
|
Méthode | Description | |
---|---|---|
recursiveGetOptimizedDrawingPoints ( |
recursively subdivides a bezier curve until distanceTolerance is met. Flat sections will have less points then curved with this algorithm. This image defines the midpoints calculated and makes the variable names sensical: http://www.antigrain.com/research/adaptive_bezier/bezier09.gif based on http://www.antigrain.com/research/adaptive_bezier/index.html
|
public static getFirstDerivative ( |
||
start | P0. | |
firstControlPoint | P1. | |
secondControlPoint | P2. | |
end | P3. | |
t | float | T. |
Résultat |
public static getFirstDerivative ( |
||
p0 | P0. | |
p1 | P1. | |
p2 | P2. | |
t | float | T. |
Résultat |
public static getOptimizedDrawingPoints ( |
||
start | Start. | |
firstCtrlPoint | First ctrl point. | |
secondCtrlPoint | Second ctrl point. | |
end | End. | |
distanceTolerance | float | Distance tolerance. |
Résultat | List |
public static getPoint ( |
||
start | P0. | |
firstControlPoint | P1. | |
secondControlPoint | P2. | |
end | P3. | |
t | float | T. |
Résultat |
public static getPoint ( |
||
p0 | P0. | |
p1 | P1. | |
p2 | P2. | |
t | float | T. |
Résultat |