Skip to content

Commit

Permalink
added fakelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitino committed Mar 13, 2015
1 parent 89d5ffb commit 0f81ff9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dualquat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,16 @@ struct dualquat {

}

dualquat<value_t> fakelog () const {

assert(isunit());

const auto& real = real().log();
const auto& dual = dual().real().C();

return dualquat<value_t>(real, dual);
}

value_t dot(const dualquat<value_t> other) const {
return w*other.w+x*other.x+y*other.y+z*other.z+
W*other.W+X*other.X+Y*other.Y+Z*other.Z;
Expand Down

0 comments on commit 0f81ff9

Please sign in to comment.