virtualx-engine/core/math
Hein-Pieter van Braam 0e29f7974b Reduce unnecessary COW on Vector by make writing explicit
This commit makes operator[] on Vector const and adds a write proxy to it.  From
now on writes to Vectors need to happen through the .write proxy. So for
instance:

Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;

Failing to use the .write proxy will cause a compilation error.

In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.

_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
..
a_star.cpp Change the neighbours vector to a set in AStar 2018-06-27 22:36:38 -07:00
a_star.h Change the neighbours vector to a set in AStar 2018-06-27 22:36:38 -07:00
aabb.cpp Removed unnecessary assignments 2018-07-24 09:51:03 +02:00
aabb.h Polished 3D selection 2018-06-13 17:52:37 +02:00
audio_frame.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
audio_frame.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
bsp_tree.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
bsp_tree.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
camera_matrix.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
camera_matrix.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
delaunay.cpp Added auto triangle generation in blend space, using Delaunay. 2018-06-21 22:48:47 -03:00
delaunay.h Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
face3.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
face3.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
geometry.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
geometry.h Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
math_2d.cpp Vector3::round, Vector2::round & Vector2::ceil methods were added. 2018-05-04 12:43:50 +03:00
math_2d.h Add SLERP to Vector{2,3}, optimize Quat's Vector3 rotation. 2018-05-12 13:05:04 -04:00
math_defs.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
math_funcs.cpp Update wrap functions 2018-03-06 10:34:37 +03:00
math_funcs.h [Core] [Math] Fix fposmod() function 2018-06-10 15:06:44 -05:00
matrix3.cpp Merge pull request #19193 from tagcup/quat_norm 2018-06-25 10:58:04 -03:00
matrix3.h Fixed Basis -> Quat conversions, added a few safety checks. 2018-05-27 14:15:47 -04:00
octree.h Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
plane.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
plane.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
quat.cpp Fixed Basis -> Quat conversions, added a few safety checks. 2018-05-27 14:15:47 -04:00
quat.h Fixed Basis -> Quat conversions, added a few safety checks. 2018-05-27 14:15:47 -04:00
quick_hull.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
quick_hull.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
transform.cpp Fixed Basis -> Quat conversions, added a few safety checks. 2018-05-27 14:15:47 -04:00
transform.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
triangle_mesh.cpp Polished 3D selection 2018-06-13 17:52:37 +02:00
triangle_mesh.h Polished 3D selection 2018-06-13 17:52:37 +02:00
triangulate.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
triangulate.h Allow degenerate triangles in polygon triangulation when necessary. 2018-02-28 22:46:56 -05:00
vector3.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
vector3.h Add SLERP to Vector{2,3}, optimize Quat's Vector3 rotation. 2018-05-12 13:05:04 -04:00