Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. PointF[] RectForEntry(int i)
  2. {
  3. var w = 32;
  4. var h = 16;
  5. return new PointF[]
  6. {
  7. new PointF(i * w, i * h), // top-left
  8. new PointF(i * w + w, i * h + h), // top-right
  9. new PointF(i * w + w, i * h), // bottom-right
  10. new PointF(i * w, i * h + h) // bottom-left
  11. };
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement