|
From: <axl...@us...> - 2009-03-15 20:47:06
|
Revision: 180
http://hgengine.svn.sourceforge.net/hgengine/?rev=180&view=rev
Author: axlecrusher
Date: 2009-03-15 20:46:54 +0000 (Sun, 15 Mar 2009)
Log Message:
-----------
replace crossproducts
Modified Paths:
--------------
Mercury2/src/MercuryVertex.cpp
Mercury2/src/MercuryVertex.h
Modified: Mercury2/src/MercuryVertex.cpp
===================================================================
--- Mercury2/src/MercuryVertex.cpp 2009-03-15 20:42:29 UTC (rev 179)
+++ Mercury2/src/MercuryVertex.cpp 2009-03-15 20:46:54 UTC (rev 180)
@@ -85,16 +85,6 @@
MercuryVertex MercuryVertex::CrossProduct(const MercuryVertex& p) const
{
- MercuryVertex ret;
- ret[0] = (*this)[1]*p[2] - (*this)[2]*p[1];
- ret[1] = (*this)[2]*p[0] - (*this)[0]*p[2];
- ret[2] = (*this)[0]*p[1] - (*this)[1]*p[0];
- return ret;
-}
-
-MercuryVertex MercuryVertex::CrossProductSSE(const MercuryVertex& p) const
-{
- //right now this is a hare slower than the C cross product above
MercuryVertex r;
MMCrossProduct( m_xyzw, p.m_xyzw, r.m_xyzw );
return r;
Modified: Mercury2/src/MercuryVertex.h
===================================================================
--- Mercury2/src/MercuryVertex.h 2009-03-15 20:42:29 UTC (rev 179)
+++ Mercury2/src/MercuryVertex.h 2009-03-15 20:46:54 UTC (rev 180)
@@ -69,7 +69,6 @@
///Obtain the cross product (*this) x p
MercuryVertex CrossProduct(const MercuryVertex& p) const;
- MercuryVertex CrossProductSSE(const MercuryVertex& p) const;
float DotProduct(const MercuryVertex& rhs) const;
MercuryVertex DotProduct3(const MercuryVertex& rhs1, const MercuryVertex& rhs2, const MercuryVertex& rhs3) const;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|