1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Some minor code cleanups

This commit is contained in:
sfan5
2025-03-31 18:01:51 +02:00
parent 7689f1f0fd
commit 03affa1bbb
15 changed files with 29 additions and 98 deletions

View File

@@ -464,26 +464,6 @@ public:
forwards.Z * pseudoMatrix[8]));
}
//! Fills an array of 4 values with the vector data (usually floats).
/** Useful for setting in shader constants for example. The fourth value
will always be 0. */
void getAs4Values(T *array) const
{
array[0] = X;
array[1] = Y;
array[2] = Z;
array[3] = 0;
}
//! Fills an array of 3 values with the vector data (usually floats).
/** Useful for setting in shader constants for example.*/
void getAs3Values(T *array) const
{
array[0] = X;
array[1] = Y;
array[2] = Z;
}
//! X coordinate of the vector
T X;