Revision cda6b590 scout/scoutsim/src/emitter.cpp

View differences:

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(orient-BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,
131
                (pos.y-sin(orient-BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER);
130
                (pos.x+cos(orient-BOM_EM_APERTURE/2)*
131
                    BOM_EM_DISTANCE)*PIX_PER_METER,
132
                (pos.y-sin(orient-BOM_EM_APERTURE/2)*
133
                    BOM_EM_DISTANCE)*PIX_PER_METER);
132 134
            path_dc.DrawLine(
133 135
                pos.x * PIX_PER_METER,
134 136
                pos.y * PIX_PER_METER,
135
                (pos.x+cos(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,
136
                (pos.y-sin(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER);
137
                (pos.x+cos(orient+BOM_EM_APERTURE/2)*
138
                    BOM_EM_DISTANCE)*PIX_PER_METER,
139
                (pos.y-sin(orient+BOM_EM_APERTURE/2)*
140
                    BOM_EM_DISTANCE)*PIX_PER_METER);
137 141

  
138 142

  
139 143
            path_dc.DrawCircle(
140
                wxPoint((pos.x+cos(orient-BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,
141
                        (pos.y-sin(orient-BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER)
144
                wxPoint((pos.x+cos(orient-BOM_EM_APERTURE/2)*
145
                            BOM_EM_DISTANCE)*PIX_PER_METER,
146
                        (pos.y-sin(orient-BOM_EM_APERTURE/2)*
147
                            BOM_EM_DISTANCE)*PIX_PER_METER)
142 148
                ,2);
143 149
            path_dc.DrawCircle(
144
                wxPoint((pos.x+cos(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER,
145
                        (pos.y-sin(orient+BOM_APERTURE/2)*BOM_DISTANCE)*PIX_PER_METER)
150
                wxPoint((pos.x+cos(orient+BOM_EM_APERTURE/2)*
151
                            BOM_EM_DISTANCE)*PIX_PER_METER,
152
                        (pos.y-sin(orient+BOM_EM_APERTURE/2)*
153
                            BOM_EM_DISTANCE)*PIX_PER_METER)
146 154
              ,2);
147 155
        }
148 156

  

Also available in: Unified diff