Revision 1e84c699
scout/scoutsim/src/emitter.cpp  

127  127 
path_dc.DrawLine( 
128  128 
pos.x * PIX_PER_METER, 
129  129 
pos.y * PIX_PER_METER, 
130 
(pos.x+cos(orientBOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER, 

131 
(pos.ysin(orientBOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER); 

130 
(pos.x+cos(orientBOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,


131 
(pos.ysin(orientBOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER);


132  132 
path_dc.DrawLine( 
133  133 
pos.x * PIX_PER_METER, 
134  134 
pos.y * PIX_PER_METER, 
135 
(pos.x+cos(orient+BOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER, 

136 
(pos.ysin(orient+BOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER); 

135 
(pos.x+cos(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,


136 
(pos.ysin(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER);


137  137  
138  138  
139  139 
path_dc.DrawCircle( 
140 
wxPoint((pos.x+cos(orientBOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER, 

141 
(pos.ysin(orientBOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER) 

140 
wxPoint((pos.x+cos(orientBOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,


141 
(pos.ysin(orientBOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER)


142  142 
,2); 
143  143 
path_dc.DrawCircle( 
144 
wxPoint((pos.x+cos(orient+BOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER, 

145 
(pos.ysin(orient+BOM_APERTURE)*BOM_DISTANCE)*PIX_PER_METER) 

144 
wxPoint((pos.x+cos(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,


145 
(pos.ysin(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER)


146  146 
,2); 
147  147 
} 
148  148 
Also available in: Unified diff