Adds a point to the path by moving to the specified coordinates specified in float precision. This method provides a single precision variant of the double precision moveTo() method on the base LinePath class. @param x the specified X coordinate @param y the sp
(float x, float y, int c)
| 222 | * @see LinePath#moveTo |
| 223 | */ |
| 224 | public final void moveTo(float x, float y, int c) { |
| 225 | if (numTypes > 0 && pointTypes[numTypes - 1] == SEG_MOVETO) { |
| 226 | floatCoords[numCoords - 2] = x; |
| 227 | floatCoords[numCoords - 1] = y; |
| 228 | pointColors[numCoords/2-1] = c; |
| 229 | } else { |
| 230 | needRoom(false, 1); |
| 231 | pointTypes[numTypes++] = SEG_MOVETO; |
| 232 | floatCoords[numCoords++] = x; |
| 233 | floatCoords[numCoords++] = y; |
| 234 | pointColors[numCoords/2-1] = c; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | |
| 239 | /** |
no test coverage detected