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

Method circle

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

draws a circle at `x, y` with radius `r`.

(double x, double y, double r)

Source from the content-addressed store, hash-verified

501 this.cubicTo(x - k, y + r, x - r, y + k, x - r, y);
502 return this.cubicTo(x - r, y - k, x - k, y - r, x, y - r);
503 }
504
505 /**
506 * draws a circle at `x, y, z` with radius `r` (*note* the funny order of parameters `x,y,r,z`).
507 */
508 public FLine circle(double x, double y, double r, double z) {
509 double k = 0.5522847498f * r;
510 this.moveTo(x, y - r, z);
511 this.cubicTo(x + k, y - r, z, x + r, y - k, z, x + r, y, z);
512 this.cubicTo(x + r, y + k, z, x + k, y + r, z, x, y + r, z);
513 this.cubicTo(x - k, y + r, z, x - r, y + k, z, x - r, y, z);

Callers 13

addBadgeMethod · 0.95
arcMethod · 0.95
addBadgeMethod · 0.95
defaultdrawsLinesMethod · 0.95
defaultdrawsLinesMethod · 0.95
raphael-min.jsFile · 0.45
checkBoxFunction · 0.45
dragThangFunction · 0.45
boundMethod · 0.45
UIGroupClass · 0.45
drawTimesForMethod · 0.45

Calls 2

moveToMethod · 0.95
cubicToMethod · 0.95

Tested by

no test coverage detected