Ask Your Question

Revision history [back]

The cross product which returns double for point is defined as follow:

P1.x*P2.y - P1.y * P2.x;

This is known as the magnitude, and it's similar to take the cross product on the XY plane (Z = 0). Some more explanations here.