1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-22 23:25:23 +00:00
OpenDiablo2/d2common/d2interface
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
..
animation.go Use our own DrawEffects enum for draw effects (#564) 2020-07-08 21:57:35 -04:00
archive_data_stream.go Abstraction for archives and archive manager (#541) 2020-07-04 22:37:13 -04:00
archive_manager.go Made abstractiong for the file manager (#542) 2020-07-05 00:00:00 -04:00
archive.go Abstraction for archives and archive manager (#541) 2020-07-04 22:37:13 -04:00
archived_animation_manager.go Standardize indexed color to RGBA conversion to one function (#562) 2020-07-08 17:46:45 -04:00
archived_file_manager.go Made abstractiong for the file manager (#542) 2020-07-05 00:00:00 -04:00
archived_font_manager.go Font manager abstraction (#545) 2020-07-05 15:56:48 -04:00
archived_palette_manager.go Font manager abstraction (#545) 2020-07-05 15:56:48 -04:00
audio_provider.go minor edits (#486) 2020-06-29 00:41:58 -04:00
bitmuncher.go Decouple bitmuncher (#495) 2020-06-29 20:21:09 -04:00
bitstream.go Decouple bitmuncher (#495) 2020-06-29 20:21:09 -04:00
cache.go Made abstractiong for the file manager (#542) 2020-07-05 00:00:00 -04:00
doc.go moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
font.go Removing Clone of Font() since all material is sharable, Fixes #515 (#561) 2020-07-08 11:25:40 -04:00
input_events.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
input_handlers.go D2input abstraction (#532) 2020-07-03 15:09:16 -04:00
input_manager.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
input_service.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
map_entity.go New package d2object, first object initFun (#537) 2020-07-04 00:48:31 -04:00
palette.go Animation manager abstraction (#544) 2020-07-05 13:01:44 -04:00
renderer.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
sound_effect.go minor edits (#486) 2020-06-29 00:41:58 -04:00
surface.go Use our own DrawEffects enum for draw effects (#564) 2020-07-08 21:57:35 -04:00
terminal.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00