16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 01:19:19 +02:00

dynamically assigned render lights

This commit is contained in:
tmj-fstate
2017-02-27 02:58:38 +01:00
parent 0752024d47
commit 80b8da6749
16 changed files with 344 additions and 158 deletions

View File

@@ -83,7 +83,8 @@ class vector3
void inline Normalize();
void inline SafeNormalize();
double inline Length();
double inline Length() const;
double inline LengthSquared() const;
void inline Zero()
{
x = y = z = 0.0;
@@ -435,11 +436,16 @@ void inline vector3::Normalize()
z *= il;
}
double inline vector3::Length()
double inline vector3::Length() const
{
return SQRT_FUNCTION(x * x + y * y + z * z);
}
double inline vector3::LengthSquared() const {
return ( x * x + y * y + z * z );
}
inline bool operator==(const matrix4x4 &m1, const matrix4x4 &m2)
{
for (int x = 0; x < 4; ++x)