1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-20 06:05:23 +00:00
OpenDiablo2/d2common
danhale-git 029cb62972
Vector float64 (#565)
* Fixed nil pointer in Copy()

* Position added

Added Floor() and String() methods to Vector.

Also added Position which declares an embedded Vector2 and returns various forms of it.

* d2vector.Vector2 renamed to d2vector.BigFloat

* vector.go renamed to big_float.go

* Float64 stub and more renaming

* Vector value getters

* Separate vector types with initial methods.

* Divide and lint warnings.

* Distance and Length.

* Scale, Abs and Negate.

* CompareFloat64Fuzzy delta direction reversed.

* Refactor vector_test.go.

* Renamed Approx methods.

* Distance and Length.

* Distance and Length.

* Removed BigFloat and Vector, renamed Float64 to Vector, simplified tests.

* Angle, SignedAngle and other small functions.

* Receiver rename.

* SingedAngle and test fixed

* Rotate.

* SetLength.

* Cross.

* NinetyAnti and NinetyClock.

* Lerp and Clamp.

* Reflect and ReflectSurface.

* Cardinal convenience functions.

* Comments.

* Panic on NaN and Inf in Position.

* Lint warnings and comments.
2020-07-09 08:30:55 -04:00
..
d2astar fixed lint errors in d2astar (#533) 2020-07-03 18:33:14 -04:00
d2data lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
d2enum Use our own DrawEffects enum for draw effects (#564) 2020-07-08 21:57:35 -04:00
d2fileformats Some slight DC6 cleanup (#557) 2020-07-08 09:14:09 -04:00
d2interface Vector float64 (#565) 2020-07-09 08:30:55 -04:00
d2math Vector float64 (#565) 2020-07-09 08:30:55 -04:00
d2resource d2datadict reading changes (#553) 2020-07-07 08:56:31 -04:00
bitmuncher.go Decouple bitmuncher (#495) 2020-06-29 20:21:09 -04:00
bitstream_test.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
bitstream.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
build_info.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
cache.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
calcstring.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
data_dictionary.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
doc.go moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
math.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
music_defs.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
path_tile.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
path.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
Point.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
rectangle.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
size.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_reader_test.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_reader.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_writer_test.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_writer.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stringutils.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
text_dictionary.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
timeutils.go Working on d2input.go for #487 (#514) 2020-07-01 14:03:40 -04:00