getPerpendicularVectorToVector static method

Offset getPerpendicularVectorToVector(
  1. Offset vector, [
  2. bool clockwise = true
])

Implementation

static Offset getPerpendicularVectorToVector(
  Offset vector, [
  bool clockwise = true,
]) {
  return clockwise ? Offset(-vector.dy, vector.dx) : Offset(vector.dy, -vector.dx);
}