summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove simple template-id from constructors for Vector3 template.template-id-ctor-warningAlexander Harkness15 hours1-2/+2
| | | | | | This was removed from the C++ standard in C++20; annoying warnings are produced by modern C++ compilers. https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2237
* Convert double to ints with floor rather than truncating (#5572)mjagdis4 days1-2/+9
| | | Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk>
* C++17 stuffTiger Wang2020-09-301-7/+0
|
* Update submodulesTiger Wang2020-07-231-8/+5
|
* Cleanup some workarounds and warnings (#4735)peterbell102020-05-101-3/+8
| | | | | | | | | * Cleanup thread_local usage in FastRandom * Use constexpr to avoid clang warning * Fix more Wglobal-constructor warnings * Make MSVC happy?
* Update fmt to 6.2.0 (#4718)peterbell102020-05-051-16/+45
| | | * Update fmt to 6.2.0
* Extended Vector3 (#4666)Mattes D2020-04-181-0/+10
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-0/+24
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-0/+16
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-1/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Add TOLUA_EXPOSITION for readabilitypeterbell102017-08-281-1/+1
|
* Cleanup Vector3 constructors and Abspeterbell102017-08-281-34/+15
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-5/+0
|
* Vector3: Removed useless NormalizeCopy overload from LuaAPI.Mattes D2016-07-181-1/+7
|
* Normalized Vector3 API to use the same capitalization as all else.Mattes D2016-06-101-6/+7
|
* Updated vector hashing bit operationsLogicParrot2016-04-221-6/+4
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-4/+4
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-0/+5
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* Removed unused typedefworktycho2015-10-121-1/+0
|
* Vector hasher is now a separate classTiger Wang2015-06-071-6/+22
|
* Changed appropriate containers to unordered_mapTiger Wang2015-06-061-0/+6
| | | | | | Thanks to @worktycho for guidance! * Potential speed improvements
* Merge remote-tracking branch 'origin/master' into warningsTiger Wang2015-05-101-6/+6
|\ | | | | | | | | | | Conflicts: src/Mobs/Monster.cpp src/Vector3.h
| * Fixed remaing pragmasworktycho2015-05-091-3/+3
| |
| * clang diagnostic not diagnosticsworktycho2015-05-091-3/+3
| | | | | | fixed clang pragmas
| * Merge pull request #1972 from Woazboat/CodeCleanup_refactoredworktycho2015-05-091-4/+4
| |\ | | | | | | Fixed compiler warning overrides in Vector3.h
| | * Fixed compiler warning overrides in Vector3.hWoazboat2015-05-091-4/+4
| | |
* | | Fixed some Visual Studio warningsTiger Wang2015-05-091-10/+10
|/ /
* | Merge pull request #1945 from Woazboat/CodeCleanup_refactoredMattes D2015-05-081-6/+26
|\| | | | | Small code cleanup - clean version
| * Added float comparison warning overrides to Vector3::hasNonZeroLengthWoazboat2015-05-081-7/+16
| |
| * Ignoring Clang warnings for strict float comparison in Vector::Equals()Woazboat2015-05-081-1/+11
| |
| * Changed Vector3 Equals function to avoid using memcmpWoazboat2015-05-081-5/+1
| |
| * Check for zero length vector in TraceWoazboat2015-05-081-0/+5
| | | | | | | | Added hasNonZeroLength member function to Vector3
* | Revert "Small code cleanup"worktycho2015-05-051-6/+5
| |
* | Merge pull request #1917 from Woazboat/CodeCleanupworktycho2015-05-051-5/+6
|\ \ | | | | | | Small code cleanup
| * | Fix HasNonZeroLength nameWoazboat2015-04-291-1/+1
| | | | | | | | | | | | now 100% more cs compliant
| * | Changed Vector3 Equals function to avoid using memcmpWoazboat2015-04-281-5/+1
| | |
| * | Check for zero length vector in TraceWoazboat2015-04-281-0/+5
| |/ | | | | | | Added hasNonZeroLength member function to Vector3
* / A* Pathfinding and better monster AIwiseoldman952015-05-011-0/+1
|/
* Added extra divide operator to Vector3.STRWarrior2015-04-071-0/+9
| | | | The multiply operator had one for both a different vector and a number, but the divide operator didn't.
* Added Vector3::TurnCW() and Vector3::TurnCCW()Mattes D2014-12-241-0/+16
|
* First implementation for the LargeOakTreeSTRWarrior2014-11-131-0/+15
|
* Fixed MSVC compilation.Mattes D2014-10-101-1/+0
|
* Float/Ciel: If it's going to use C++11, it might as well take advantage of itarchshift2014-10-091-3/+3
|
* Use static casts instead of C casts, add floor-cast functionsarchshift2014-10-091-17/+16
|
* Fixed spaces around single-line comments.madmaxoft2014-07-171-1/+1
| | | | There should be at least two spaces in front and one space after //-style comments.
* Fixed a missing "inline" keyword.madmaxoft2014-07-101-1/+1
|
* Fixed Vector3.h compilation in MSVC2008.madmaxoft2014-07-101-0/+9
|
* Compile fixTiger Wang2014-07-041-1/+1
|
* SuggestionsTiger Wang2014-07-041-5/+5
|
* Vector clamping fixesTiger Wang2014-07-011-17/+16
| | | | Thank you, @madmaxoft.
* Implemented Vector3<>::Floor()Tiger Wang2014-06-301-8/+16
|
* SuggestionsTiger Wang2014-06-291-0/+14
|
* Merge branch 'master' into chunksparsing/structsTycho2014-05-101-15/+40
|\ | | | | | | | | Conflicts: src/Chunk.h
| * Merge branch 'master' into fixesTiger Wang2014-05-061-20/+40
| |\ | | | | | | | | | | | | Conflicts: src/Vector3.h
| | * Removed convert-assign operator.madmaxoft2014-05-041-8/+0
| | | | | | | | | | | | We want all conversions to be explicit, not hidden.
| | * Removed the controversial Vector3::operator <.madmaxoft2014-05-031-6/+0
| | | | | | | | | | | | It hasn't been used in any C++ code and Lua doesn't need it.
| | * Fixed float comparison warnings in Vector3.madmaxoft2014-05-031-5/+23
| | | | | | | | | | | | There's a bitwise comparison (Equals), and there's Eps-based comparison (EqualsEps).
| | * Implemented a true assignment operator for Vector3.madmaxoft2014-05-031-1/+9
| | |
| | * Attempted fix for CLang warnings in Vector3.h.madmaxoft2014-05-021-1/+9
| | | | | | | | | | | | C++11 seems to have deprecated classes that have custom copy-constructor but not a custom assignment operator.
| * | Suggestions'd #2Tiger Wang2014-05-061-0/+5
| |/
* / cCHunkBuffer that compiles with TestGlobals.hTycho2014-05-031-0/+2
|/
* Rewrote redstone powering to use power levelsTiger Wang2014-04-151-0/+5
|
* Added Vector3::Move(const Vector3 &).madmaxoft2014-03-251-0/+7
|
* Vector3: More castsandrew2014-03-121-9/+9
|
* M_PI MSVC Fixandrew2014-03-121-1/+1
|
* Vector3: Length() should always return a floatandrew2014-03-121-9/+9
|
* Matrix4: Removed enumandrew2014-03-111-0/+6
|
* Unified Matrix4 codeandrew2014-03-111-1/+1
|
* LineCoeff Docandrew2014-03-111-4/+20
|
* Unified Vector classesandrew2014-03-111-0/+264