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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user