getParametricCurve method

ParametricFunction getParametricCurve(
  1. Vector3 function(
    1. double
    ), {
  2. double stepSize = 0.01,
  3. double tMin = 0,
  4. double tMax = 1,
  5. double dt = 1e-8,
  6. List<double> discontinuities = const [],
  7. Color color = WHITE,
})

Implementation

ParametricFunction getParametricCurve(
  Vector3 Function(double) function, {
  double stepSize = 0.01, // use a step size <= 0 for automatic step size
  double tMin = 0,
  double tMax = 1,
  double dt = 1e-8,
  List<double> discontinuities = const [],
  Color color = WHITE,
}) {
  var graph = ParametricFunction(
    parametricFunction: (t) => coordsToPoint(function(t)),
    stepSize: stepSize,
    tMin: tMin,
    tMax: tMax,
    dt: dt,
    discontinuities: discontinuities,
    color: color,
  );

  return graph;
}