blendPoints function

_PathOffset blendPoints(
  1. _PathOffset p1,
  2. _PathOffset p2
)

Blend the points with a ratio (1/3):(2/3).

Implementation

_PathOffset blendPoints(_PathOffset p1, _PathOffset p2) {
  return _PathOffset((p1.dx + 2 * p2.dx) * _kOneOverThree,
      (p1.dy + 2 * p2.dy) * _kOneOverThree);
}