function c = cross2d(a,b) % 2-D cross product % By: Ton van den Bogert, University of Calgary % Date: April 26, 1996 % Report problems to bogert@acs.ucalgary.ca c = a(:,1).*b(:,2) - b(:,1).*a(:,2);