mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 08:09:19 +02:00
dynamically assigned render lights
This commit is contained in:
10
dumb3d.h
10
dumb3d.h
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user