Skip to content

Instantly share code, notes, and snippets.

View jamesford42's full-sized avatar

James Ford jamesford42

  • Dallas, TX
View GitHub Profile
@jamesford42
jamesford42 / Space.cs
Last active January 7, 2018 22:31
Uniform-dimension cells in a sparse grid, for acceleration of 2D bounding rectangle overlap tests.
#if WINDOWS && !RETAIL
#define PROFILE_COLLISION
#endif
#define NO_CELL_MASK
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.Xna.Framework;