getPoint method

  1. @override
Vector? getPoint(
  1. double t, [
  2. Vector? optionalTarget
])
override

Implementation

@override
Vector? getPoint(double t, [Vector? optionalTarget]) {
  final point = optionalTarget ?? Vector2();

  final v0 = this.v0, v1 = this.v1, v2 = this.v2, v3 = this.v3;

  point.setValues(PathInterpolations.cubicBezier(t, v0.x, v1.x, v2.x, v3.x),PathInterpolations.cubicBezier(t, v0.y, v1.y, v2.y, v3.y));

  return point;
}