3 ms·
FWIW i prefer mul_x, even in languages such as C++ where operator overloading is available i put methods with names like mul, div, etc instead of operators as i
by Crinus 7y ago
FWIW i prefer mul_x, even in languages such as C++ where operator overloading is available i put methods with names like mul, div, etc instead of operators as i am not fan of infix function calls.
Also specifically for vectors and matrices for 3D graphics, i prefer to use float mtx[16], vec[3], etc instead of specifying custom types (then i can use the vec_foo calls with matrices with the proper offsets or the normal part of a float plane[4] which is encoded as normal+distance or use the vec_foo calls directly in a vertex buffer, etc).