Commit Graph

14 Commits

Author SHA1 Message Date
67550a789b move History.ToArray() into test code. 2020-03-18 14:03:37 -04:00
4bcb0d9b95 fix SharedTests references to JSON library. 2020-03-04 15:16:13 -05:00
ab2a57d632 update LangVersion=latest in all projects
GitOrigin-RevId: 197405574e498367ed719f81216ebbb23bb89ab0
2020-02-24 19:02:04 -05:00
a32ef2a0eb Add unit tests for Geometry.Rotate(Vector2).
Fixes #20.

GitOrigin-RevId: 45cd5e99a2c841235e2d9ed29744fe22900ce167
2020-02-15 16:49:57 -05:00
57b65f559c rename Aabb -> AABB
GitOrigin-RevId: 37b49d7a3ff2b4d0cf3e14e4339316bc72e2785e
2020-02-13 14:53:19 -05:00
878d434b22 Add code for intersecting axis-aligned bounding boxes with segments & each other
GitOrigin-RevId: 99a855c1a813c0fcdd4fca0fd31456b62e964abb
2020-02-13 14:52:07 -05:00
bba9f643eb Implement Bresenham's algorithm for line rasterization.
This is implemented as a static Line.Rasterize(Point p1, Point p2) function
that returns an array of Points. There's also a Line.Rasterize(x1, y1, x1, y2)
version for convenience.

Unit tests included.

GitOrigin-RevId: 525098f8c76c6c3d1a6ff2c32fa2206cff080a11
2020-02-13 14:50:53 -05:00
252fe5b243 remove unused using
GitOrigin-RevId: 1584816927db6030172d5b762782d249ccd6aa0c
2020-02-13 14:50:50 -05:00
ae8fa0d21d Revert "Add .gitignore and .gitattributes."
This reverts commit 5c9f574644ecd78b112ea857d658f670ef4773e3.

GitOrigin-RevId: 277054282d105e4a5f185ac51983581c89b8a031
2020-02-13 14:50:24 -05:00
cb1b78b875 Add .gitignore and .gitattributes.
GitOrigin-RevId: 5c9f574644ecd78b112ea857d658f670ef4773e3
2020-02-13 14:50:20 -05:00
f6f25144b6 SharedTests: don't depend on specific MonoGame version
GitOrigin-RevId: d30010bbacd2ae06bf6ca0055b39c29260682e29
2020-02-13 14:50:16 -05:00
cc37561076 run dos2unix on all source files
GitOrigin-RevId: c65ff59d86415057167f600d1c31545b1ff0b49b
2020-02-13 14:49:30 -05:00
960521a6e0 History: add ToArray() method to make tests cleaner
GitOrigin-RevId: 5bbf5be614ed6c2d9884ac924ab627ccaa57e355
2020-02-13 14:49:26 -05:00
ab692f94a7 Add unit tests for History class.
Also introduce .editorconfig file and update .csproj files.

GitOrigin-RevId: 60369ee53b0fe53135f4c2b7403284eabced3755
2020-02-13 14:49:19 -05:00