pointTowards method

Point<double> pointTowards(
  1. Point<double> otherPoint, {
  2. double proportion = 0.5,
})

Go towards an other point by a proportion

Implementation

Point<double> pointTowards(Point<double> otherPoint,
    {double proportion = 0.5}) {
  return this + (otherPoint - this) * proportion;
}