worldPointFromDistanceSpace method

(double, double) worldPointFromDistanceSpace(
  1. int cornerIndex,
  2. double dPrev,
  3. double dNext
)

Implementation

(double, double) worldPointFromDistanceSpace(
  int cornerIndex,
  double dPrev,
  double dNext,
) {
  return (
    pointX[cornerIndex] +
        (cornerMatrix00[cornerIndex] * dPrev) +
        (cornerMatrix01[cornerIndex] * dNext),
    pointY[cornerIndex] +
        (cornerMatrix10[cornerIndex] * dPrev) +
        (cornerMatrix11[cornerIndex] * dNext),
  );
}