getPoint method

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

Implementation

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

  var v0 = this.v0, v1 = this.v1, v2 = this.v2;

  point.set(QuadraticBezier(t, v0.x, v1.x, v2.x),
      QuadraticBezier(t, v0.y, v1.y, v2.y));

  return point;
}