Mise à jour de 'SH3D/object/coordtable/coord.cpp'

Ajout possibilite calcul
This commit is contained in:
Milang 2019-07-17 15:28:52 +02:00
parent fbb05130fd
commit b7fb3dd72c
1 changed files with 19 additions and 2 deletions

View File

@ -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
}