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

Method closestPointTo

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

returns the point on this line thats the closest to a particular point

(Vec3 point)

Source from the content-addressed store, hash-verified

1388 * returns a cursor that is at the position on this line that is as close to `point` as possible
1389 */
1390 public field.graphics.FLinesAndJavaShapes.Cursor cursorFromClosestPoint(Vec3 point) {
1391 double t = FLinesAndJavaShapes.closestT(this, point);
1392 return cursor().setT(t);
1393 }
1394
1395 /*

Callers

nothing calls this directly

Calls 2

positionMethod · 0.65

Tested by

no test coverage detected