at method

Vector3 at(
  1. double t,
  2. Vector3 target
)

t - Use values 0-1 to return a position along the line segment.

target — the result will be copied into this Vector3.

Returns a vector at a certain position along the line. When t = 0, it returns the start vector, and when t = 1 it returns the end vector.

Implementation

Vector3 at(double t, Vector3 target) {
  return delta(target).scale(t).add(start);
}