Skip to content

Commit

Permalink
quaternion: peding upgrade, removed toMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
larc committed Mar 21, 2024
1 parent c3b269f commit 93c3c8d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion include/gproshan/mesh/quaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class quaternion
const quaternion & operator = (const vertex & v);
real_t & operator [] (int index);
real_t operator [] (int index) const;
void toMatrix(real_t Q[4][4]) const;
real_t & re(void);
real_t re(void) const;
vertex & im(void);
Expand Down
2 changes: 1 addition & 1 deletion src/gproshan/mesh/che.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ void che::update_evt_ot_et()

if(OT[he] == NIL)
{
ET[ne++] = he;
if(ET) ET[ne++] = he;

index_t ohe = NIL;
for(index_t j = 0; j < vnhe[v]; ++j)
Expand Down
8 changes: 0 additions & 8 deletions src/gproshan/mesh/quaternion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ real_t quaternion::operator [] (int index) const
return v[index];
}

void quaternion::toMatrix(real_t Q[4][4]) const // FIX
{
Q[0][0] = s; Q[0][1] = -v.x(); Q[0][2] = -v.y(); Q[0][3] = -v.z();
Q[1][0] = v.x(); Q[1][1] = s; Q[1][2] = -v.z(); Q[1][3] = v.y();
Q[2][0] = v.y(); Q[2][1] = v.z(); Q[2][2] = s; Q[2][3] = -v.x();
Q[3][0] = v.z(); Q[3][1] = -v.y(); Q[3][2] = v.x(); Q[3][3] = s;
}

real_t & quaternion::re()
{
return s;
Expand Down

0 comments on commit 93c3c8d

Please sign in to comment.