Add vector3d::getAs3Values (patch provided by slavik262)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3441 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2010-11-20 13:31:44 +00:00
parent 5db243df93
commit 5c3e9500f8
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Changes in 1.8 (??.0?.2010)
- Add vector3d::getAs3Values (patch provided by slavik262)
- Add function to SViewFrustum to get corners of the near plane (patch provided by Matt Kline, aka slavik262)
- ParticleFadeOutAffector::setFadeOutTime can no longer be set to invalid values

View File

@ -394,6 +394,16 @@ namespace core
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;