Subversion Repositories gelsvn

Rev

Rev 382 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 382 Rev 427
Line 215... Line 215...
215
    }
215
    }
216
 
216
 
217
    /// Rotate vector according to unit quaternion
217
    /// Rotate vector according to unit quaternion
218
    V apply_unit(const V& vec) const
218
    V apply_unit(const V& vec) const
219
    {
219
    {
220
	  assert(abs(norm() - 1.0) < SMALL);
220
	  assert(fabs(norm() - 1.0) < SMALL);
221
      return ((*this)*Q(vec)*conjugate()).qv;
221
      return ((*this)*Q(vec)*conjugate()).qv;
222
    }
222
    }
223
  };
223
  };
224
 
224
 
225
  template<class T, class V, class Q>
225
  template<class T, class V, class Q>