PathFollow2D.cubicInterp

If true, the position between two cached points is interpolated cubically, and linearly otherwise. The points along the Curve2D of the Path2D are precomputed before use, for faster calculations. The point at the requested offset is then calculated interpolating between two adjacent cached points. This may present a problem if the curve makes sharp turns, as the cached points may not follow the curve closely enough. There are two answers to this problem: either increase the number of cached points and increase memory consumption, or make a cubic interpolation between two points at the cost of (slightly) slower calculations.

  1. bool cubicInterp [@property getter]
  2. bool cubicInterp [@property setter]
    struct PathFollow2D
    @nogc nothrow @property
    void
    cubicInterp
    (
    bool v
    )

Meta