source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/kovesi/hcross.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 919 bytes
Line 
1% HCROSS - Homogeneous cross product, result normalised to s = 1.
2%
3% Function to form cross product between two points, or lines,
4% in homogeneous coodinates.  The result is normalised to lie
5% in the scale = 1 plane.
6%
7% Usage: c = hcross(a,b)
8%
9
10% Copyright (c) 2000-2005 Peter Kovesi
11% School of Computer Science & Software Engineering
12% The University of Western Australia
13% http://www.csse.uwa.edu.au/
14%
15% Permission is hereby granted, free of charge, to any person obtaining a copy
16% of this software and associated documentation files (the "Software"), to deal
17% in the Software without restriction, subject to the following conditions:
18%
19% The above copyright notice and this permission notice shall be included in
20% all copies or substantial portions of the Software.
21%
22% The Software is provided "as is", without warranty of any kind.
23
24%  April 2000
25
26function c = hcross(a,b)
27c = cross(a,b);
28c = c/c(3);
Note: See TracBrowser for help on using the repository browser.