Skip to content

Commit

Permalink
bugfix in rcp function of affinespace, there was a problem when insta…
Browse files Browse the repository at this point in the history
…ntiated with quaternions
  • Loading branch information
svenwoop committed Jul 18, 2013
1 parent dc9fb3a commit 160038b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/math/affinespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace embree

template<typename L> __forceinline AffineSpaceT<L> operator -( const AffineSpaceT<L>& a ) { return AffineSpaceT<L>(-a.l,-a.p); }
template<typename L> __forceinline AffineSpaceT<L> operator +( const AffineSpaceT<L>& a ) { return AffineSpaceT<L>(+a.l,+a.p); }
template<typename L> __forceinline AffineSpaceT<L> rcp( const AffineSpaceT<L>& a ) { L il = rcp(a.l); return AffineSpaceT<L>(il,-il*a.p); }
template<typename L> __forceinline AffineSpaceT<L> rcp( const AffineSpaceT<L>& a ) { L il = rcp(a.l); return AffineSpaceT<L>(il,-(il*a.p)); }

////////////////////////////////////////////////////////////////////////////////
// Binary Operators
Expand Down

0 comments on commit 160038b

Please sign in to comment.