1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-27 01:25:35 +00:00
OpenDiablo2/d2common/d2math
danhale-git 921d44a70c
mapEntity.Step() benchmark and improvements. (#593)
* Initial test and benchmark for mapEntity.Step().

* Removed `&& !m.hasPath()` from mapEntity.atTarget

* Direction is now updated when the path node changes mid-step and target is updated when path is set.

* Test improvements.

* Deleted old benchmark function and tidying.

* d2math.Abs added.

* Abs benchmark and optimisation.

* Negate and Distance benchmark.

* Length and SetLength benchmark.

* Lerp and Dot benchmark.

* Cross and Normalize benchmark.

* Angle and SignedAngle benchmark.

* Trivial change to Vector.Abs()
2020-07-16 12:06:08 -04:00
..
d2vector mapEntity.Step() benchmark and improvements. (#593) 2020-07-16 12:06:08 -04:00
doc.go Map entity rework - vectors in mapEntity (#579) 2020-07-13 09:06:50 -04:00
math_test.go Map entity rework - vectors in mapEntity (#579) 2020-07-13 09:06:50 -04:00
math.go mapEntity.Step() benchmark and improvements. (#593) 2020-07-16 12:06:08 -04:00
ranged_number_test.go adding ranged number type, for use in stats (#581) 2020-07-13 09:03:19 -04:00
ranged_number.go adding ranged number type, for use in stats (#581) 2020-07-13 09:03:19 -04:00