Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunti i sorgenti per Greenleaf Math Library (gfm.dll) git-svn-id: svn://10.65.10.50/trunk@10079 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			42 lines
		
	
	
		
			681 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			681 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
/* DEC	*ConvDegreesToRadians(rad, deg);
 | 
						|
 *
 | 
						|
 * ARGUMENT
 | 
						|
 *	DEC	*rad;
 | 
						|
 *	DEC	*deg;
 | 
						|
 *
 | 
						|
 * DESCRIPTION
 | 
						|
 *	Converts an angle deg, in degrees, to radians,
 | 
						|
 *  storing the	result in rad.
 | 
						|
 *
 | 
						|
 * SIDE	EFFECTS
 | 
						|
 *	None.
 | 
						|
 *
 | 
						|
 * RETURNS
 | 
						|
 *	rad if successful, otherwise GM_NULL
 | 
						|
 *
 | 
						|
 * POSSIBLE ERRORS
 | 
						|
 *	GM_NULLPOINTER
 | 
						|
 *	GM_INIT
 | 
						|
 *	GM_UNDERFLOW
 | 
						|
 *
 | 
						|
 * AUTHOR
 | 
						|
 *  Jared Levy
 | 
						|
 *   Copyright (C) 1988-1990 Greenleaf Software	Inc.  All rights reserved.
 | 
						|
 *
 | 
						|
 * MODIFICATIONS
 | 
						|
 *
 | 
						|
 *
 | 
						|
 */
 | 
						|
#include <stdio.h>
 | 
						|
#include "gmsystem.h"
 | 
						|
DEC	*ConvDegreesToRadians(rad, deg)
 | 
						|
DEC	*rad;
 | 
						|
DEC	*deg;
 | 
						|
{
 | 
						|
	_MacStart(GM_DRAD);
 | 
						|
	(void) _MulDec80Bit( rad, &decPiOver180, deg );
 | 
						|
	(void) _Sq5UnsTo4Uns( rad );
 | 
						|
	_MacRet( rad );
 | 
						|
}
 | 
						|
 |