Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
d8ca45dc
Commit
d8ca45dc
authored
Jan 09, 2020
by
Dennis Gläser
Browse files
add 2d cross product
parent
8dfb2015
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/common/math.hh
View file @
d8ca45dc
...
...
@@ -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.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment