transform method

T transform(
  1. double t
)

Returns the value of the curve at point t.

This method asserts that t is between 0 and 1 before delegating to transformInternal.

It is recommended that subclasses override transformInternal instead of this function, as the above case is already handled in the default implementation of transform, which delegates the remaining logic to transformInternal.

Implementation

T transform(double t) {
  assert(t >= 0.0 && t <= 1.0, 'parametric value $t is outside of [0, 1] range.');
  return transformInternal(t);
}