hullPointsAt method

List<Vector2> hullPointsAt(
  1. double t
)

Returns the hull points at the parameter value t.

Implementation

List<Vector2> hullPointsAt(double t) {
  final hullPoints = <Vector2>[];
  for (var index = 0; index <= order; index++) {
    final hullPoint = Vector2.copy(points[index]);
    hullPoints.add(hullPoint);
  }

  return _interpolateRecursively(hullPoints, t);
}