getPoint method
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;
}