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

Method sampleAtD

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

returns a position on this line that's `distance` along it: specifically when `distance=0` then we're at the start of the line, when `alpha=0.5` then we are in the middle, when `distance=line.length()` we're at the end.

(double distance)

Source from the content-addressed store, hash-verified

1370
1371
1372 /**
1373 * how long is this line?
1374 */
1375 public float length() {
1376 FLinesAndJavaShapes.Cursor c = cursor();
1377 return c.lengthD();
1378 }
1379

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.95
setDMethod · 0.80
positionMethod · 0.65

Tested by

no test coverage detected