getDirectionVector static method

Offset getDirectionVector(
  1. Offset point1,
  2. Offset point2
)

Implementation

static Offset getDirectionVector(Offset point1, Offset point2) {
  return point2 - point1;
}