1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-06 11:34:15 -04:00
OpenDiablo2/d2common/d2math/d2vector
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
..
position_test.go Map entity rework - vectors in mapEntity (#579) 2020-07-13 09:06:50 -04:00
position.go Map entity rework - vectors in mapEntity (#579) 2020-07-13 09:06:50 -04:00
vector_test.go mapEntity.Step() benchmark and improvements. (#593) 2020-07-16 12:06:08 -04:00
vector.go mapEntity.Step() benchmark and improvements. (#593) 2020-07-16 12:06:08 -04:00