snap


Description:

public int snap (int coord, int grid)

Snap a coordinate to the nearest grid

Parameters:

coord

the coordinate

grid

the grid size

Returns:

the snapped coordinate


Namespace: Geda3.Coord
Package: Gschem3