offsetToVector static method

Vector2 offsetToVector(
  1. Offset offset
)

Converts an Offset to a vmath.Vector2.

Implementation

static vmath.Vector2 offsetToVector(Offset offset) {
  return vmath.Vector2(offset.dx, offset.dy);
}