Commit d8ca45dc authored by Dennis Gläser's avatar Dennis Gläser
Browse files

add 2d cross product

parent 8dfb2015
......@@ -40,6 +40,14 @@ Vector<ctype, 3> crossProduct(const Vector<ctype, 3>& v1,
v1.x()*v2.y() - v1.y()*v2.x() };
}
/*!
* \todo TODO doc me.
*/
template <class ctype>
ctype crossProduct(const Vector<ctype, 2>& v1,
const Vector<ctype, 2>& v2)
{ return v1.x()*v2.y() - v1.y()*v2.x(); }
/*!
* \brief \todo TODO doc me.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment