Code computing the cross-product
Posted
by WizardOfOdds
on Stack Overflow
See other posts from Stack Overflow
or by WizardOfOdds
Published on 2010-03-28T13:17:43Z
Indexed on
2010/03/28
13:23 UTC
Read the original article
Hit count: 313
math
|cross-product
This is not a dupe of my question:
If I have the following piece of pseudo-C/Java/C# code:
int a[]= { 30, 20 };
int b[] = { 40, 50 };
int c[] = {12, 12};
How do I compute the sign of the cross-product ABxAC?
I'm only interested in the sign, so I have:
boolean signABxAC = ?
Now concretely what do I write to get the sign of the cross-product ABxAC?
© Stack Overflow or respective owner