snapToIntersection method

  1. @override
Point<num> snapToIntersection(
  1. Point<num> worldPos
)
override

Implementation

@override
Point<num> snapToIntersection(Point<num> worldPos) {
  return gridToWorldSpace(worldToGridSpace(worldPos).round());
}