Revision: 54416
http://brlcad.svn.sourceforge.net/brlcad/?rev=54416&view=rev
Author: carlmoore
Date: 2013-02-14 21:41:12 +0000 (Thu, 14 Feb 2013)
Log Message:
-----------
use RAD2DEG , DEG2RAD
Modified Paths:
--------------
brlcad/trunk/src/conv/dxf/dxf-g.c
Modified: brlcad/trunk/src/conv/dxf/dxf-g.c
===================================================================
--- brlcad/trunk/src/conv/dxf/dxf-g.c 2013-02-14 21:38:02 UTC (rev 54415)
+++ brlcad/trunk/src/conv/dxf/dxf-g.c 2013-02-14 21:41:12 UTC (rev 54416)
@@ -1959,7 +1959,7 @@
int maxLineLen=0;
double scale = 1.0;
double xdel = 0.0, ydel = 0.0;
- double radians = rotationAngle * M_PI / 180.0;
+ double radians = rotationAngle * DEG2RAD;
char *copyOfText = bu_calloc( (unsigned int)strlen( text )+1, 1,
"copyOfText" );
BU_LIST_INIT( &vhead );
@@ -2240,7 +2240,7 @@
coord = (code / 10) - 1;
xAxisDirection[coord] = atof( line );
if ( code == 31 ) {
- rotationAngle = atan2( xAxisDirection[Y], xAxisDirection[X] ) *
180.0 / M_PI;
+ rotationAngle = atan2( xAxisDirection[Y], xAxisDirection[X] ) *
RAD2DEG;
}
break;
case 40:
@@ -2563,8 +2563,8 @@
/* calculate arc at origin first */
num_segs = (end_angle - start_angle) / 360.0 * segs_per_circle;
- start_angle *= M_PI / 180.0;
- end_angle *= M_PI / 180.0;
+ start_angle *= DEG2RAD;
+ end_angle *= DEG2RAD;
if ( verbose ) {
bu_log( "arc has %d segs\n", num_segs );
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits