getPoint method
Implementation
@override
getPoint(t, optionalTarget) {
var point = optionalTarget ?? Vector2(null, null);
if (t == 1) {
point.copy(v2);
} else {
point.copy(v2).sub(v1);
point.multiplyScalar(t).add(v1);
}
return point;
}