()
| 184 | } |
| 185 | |
| 186 | func (point Vector) LockToGrid() Vector { |
| 187 | return Vector{ |
| 188 | X: float32(math.Round(float64(point.X/globals.GridSize)) * float64(globals.GridSize)), |
| 189 | Y: float32(math.Round(float64(point.Y/globals.GridSize)) * float64(globals.GridSize)), |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | func (point Vector) CeilToGrid() Vector { |
| 194 | return Vector{ |
no outgoing calls
no test coverage detected