@webref shape:vertex @param cx the x-coordinate of the control point @param cy the y-coordinate of the control point @param x3 the x-coordinate of the anchor point @param y3 the y-coordinate of the anchor point @see PGraphics#curveVertex(float, float, float) @see PGraphics#vertex(float, float, float
(float cx, float cy,
float x3, float y3)
| 2184 | * @see PGraphics#bezier(float, float, float, float, float, float, float, float, float, float, float, float) |
| 2185 | */ |
| 2186 | public void quadraticVertex(float cx, float cy, |
| 2187 | float x3, float y3) { |
| 2188 | float[] prev = vertices[vertexCount-1]; |
| 2189 | float x1 = prev[X]; |
| 2190 | float y1 = prev[Y]; |
| 2191 | |
| 2192 | bezierVertex(x1 + ((cx-x1)*2/3.0f), y1 + ((cy-y1)*2/3.0f), |
| 2193 | x3 + ((cx-x3)*2/3.0f), y3 + ((cy-y3)*2/3.0f), |
| 2194 | x3, y3); |
| 2195 | } |
| 2196 | |
| 2197 | |
| 2198 | /** |