MCPcopy Index your code
hub / github.com/processing/processing / moveTo

Method moveTo

core/src/processing/opengl/LinePath.java:224–236  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 15

tessellateLines2DMethod · 0.95
tessellateLineStrip2DMethod · 0.95
tessellateLineLoop2DMethod · 0.95
tessellateEdges2DMethod · 0.95
pathToMethod · 0.45
vertexMethod · 0.45
drawShapeMethod · 0.45
curveVertexSegmentMethod · 0.45
triangleMethod · 0.45
quadMethod · 0.45
vertexMethod · 0.45
curveVertexSegmentMethod · 0.45

Calls 2

needRoomMethod · 0.95
S15_16ToFloatMethod · 0.95

Tested by

no test coverage detected