Colin McMillen
3be37740f7
Geometry: add equality operators & GetHashCode for structs
4 years ago
Colin McMillen
8ca79a1875
degrees aren't radians
4 years ago
Colin McMillen
0bb6f22f3d
Geometry cleanups / TODO removal.
4 years ago
Colin McMillen
5121f6d775
World: load levels by parsing a JSON level description.
4 years ago
Colin McMillen
f4581ecaf8
Player now takes damage from spikes.
GitOrigin-RevId: e909631621
4 years ago
Colin McMillen
0a64d17db5
fix lint errors
GitOrigin-RevId: 5de396b259
4 years ago
Colin McMillen
6802b3f162
Make separate ExtensionMethods file.
Add Point-deconstruction as an extension method.
GitOrigin-RevId: a804ba797a
4 years ago
Colin McMillen
0e164f7b75
mark field readonly
GitOrigin-RevId: 9e06f8a03a
4 years ago
Colin McMillen
a21802e9f2
FMath.DegToRad(): use look-up table.
GitOrigin-RevId: 2dab2e175c
4 years ago
Colin McMillen
7cc953a44e
add extension method: Vector2.Rotate()
GitOrigin-RevId: ee1e84ff18
4 years ago
Colin McMillen
0f9d546398
make Clamp() generic across comparables and move it into FMath.
GitOrigin-RevId: 4ed26cc24d
4 years ago
Colin McMillen
554578968d
Geometry: add FMath class & convenient accessors for AABB corners.
The FMath class is like the System.Math class, but returns floats instead of
doubles so that you don't have to redundantly cast things.
GitOrigin-RevId: 0e1d7f46c7
4 years ago
Colin McMillen
57b65f559c
rename Aabb -> AABB
GitOrigin-RevId: 37b49d7a3f
4 years ago
Colin McMillen
878d434b22
Add code for intersecting axis-aligned bounding boxes with segments & each other
GitOrigin-RevId: 99a855c1a8
4 years ago