getPoint method

  1. @override
dynamic getPoint(
  1. num t,
  2. dynamic optionalTarget
)
override

Implementation

@override
getPoint(t, optionalTarget) {
  var point = optionalTarget ?? Vector3(null, null, null);

  if (t == 1) {
    point.copy(vec2);
  } else {
    point.copy(vec2).sub(vec1);
    point.multiplyScalar(t).add(vec1);
  }

  return point;
}