getPoint method
Vector?
getPoint(
- double t, [
- Vector? optionalTarget
])
override
Implementation
@override
Vector? getPoint(double t, [Vector? optionalTarget]) {
final point = Vector3.zero();
if(optionalTarget != null){
point.setFrom(optionalTarget);
}
final v0 = this.v0 as Vector3;
final v1 = this.v1 as Vector3;
final v2 = this.v2 as Vector3;
point.setValues(
PathInterpolations.quadraticBezier( t, v0.x, v1.x, v2.x ),
PathInterpolations.quadraticBezier( t, v0.y, v1.y, v2.y ),
PathInterpolations.quadraticBezier( t, v0.z, v1.z, v2.z )
);
return point;
}