MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / quadToRel

Method quadToRel

src/main/java/field/graphics/FLine.java:315–321  ·  view source on GitHub ↗

draws a curve from the current position, towards (but not through) the relative position `q1x, q1y`, then onto + `x, y`.

(double q1x, double q1y, double x, double y)

Source from the content-addressed store, hash-verified

313 return quadTo(at.x + q1x, at.y + q1y, at.x + x, at.y + y);
314 }
315
316 /**
317 * draws a curve from the current position, towards (but not through) `q1x, q1y, q1z`, then onto `x, y`.
318 */
319 public FLine quadTo(double q1x, double q1y, double q1z, double x, double y, double z) {
320 if (nodes.size() == 0) return moveTo(x, y);
321
322 Vec3 at = last().to;
323
324 double c1x = (at.x + q1x * 2) / 3;

Callers 1

toFLineMethod · 0.80

Calls 4

moveToMethod · 0.95
lastMethod · 0.95
quadToMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected