mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Some minor code cleanups
This commit is contained in:
parent
7689f1f0fd
commit
03affa1bbb
15 changed files with 29 additions and 98 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue