source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/qtfm/@quaternion/ispure.m @ 37

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

Added original make3d

File size: 561 bytes
Line 
1function tf = ispure(q)
2% ISPURE   Tests whether a quaternion is pure.
3% tf = ispure(q) returns 1 if q has no scalar part, 0 if not.
4% Note that if q has a scalar part which is zero, ispure(q) returns 1.
5
6% Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan.
7% See the file : Copyright.m for further details.
8
9error(nargchk(1, 1, nargin)), error(nargoutchk(0, 1, nargout))
10
11% Implementation note. This function uses ispure_internal, so that the knowledge of
12% how quaternions are represented is hidden in the private functions.
13
14tf = ispure_internal(q);
Note: See TracBrowser for help on using the repository browser.