Mise à jour de 'SH3D/object/coordtable/coord.cpp'
Ajout possibilite calcul
This commit is contained in:
parent
fbb05130fd
commit
b7fb3dd72c
|
@ -5,7 +5,7 @@ bool operator==(Coord const& a, Coord const& b)
|
|||
bool operator!=(Coord const& a, Coord const& b)
|
||||
{return !(a==b);}
|
||||
|
||||
Coord::Coord() : x(0), y(0), z(0)
|
||||
Coord::Coord() : x(0), y(0), z(0), nx(0), ny(0), nz(0), m_lastFrame(-1)
|
||||
{}
|
||||
|
||||
Coord::Coord(const Coord& coord)
|
||||
|
@ -13,6 +13,7 @@ Coord::Coord(const Coord& coord)
|
|||
x=coord.x;
|
||||
y=coord.y;
|
||||
z=coord.z;
|
||||
m_lastFrame=coord.m_lastFrame;
|
||||
}
|
||||
|
||||
Coord& Coord::operator=(const Coord& a)
|
||||
|
@ -26,4 +27,20 @@ Coord operator+(Coord const& a, Coord const& b)
|
|||
Coord copie(a);
|
||||
copie+=b;
|
||||
return copie;
|
||||
}
|
||||
}
|
||||
|
||||
void Coord::calc()
|
||||
{
|
||||
if (Userview::getFrame()==m_lastFrame)
|
||||
return;
|
||||
m_lastFrame=Userview::getFrame();
|
||||
|
||||
// todo fonction de translation despoints
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue