Skip to content

Commit 160038b

Browse files
committed
bugfix in rcp function of affinespace, there was a problem when instantiated with quaternions
1 parent dc9fb3a commit 160038b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/math/affinespace.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace embree
8383

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

8888
////////////////////////////////////////////////////////////////////////////////
8989
// Binary Operators

0 commit comments

Comments
 (0)