25.10.2014 Views

Tesis Simulador Circuitos 3D.pdf - Maestría en Ciencias de la ...

Tesis Simulador Circuitos 3D.pdf - Maestría en Ciencias de la ...

Tesis Simulador Circuitos 3D.pdf - Maestría en Ciencias de la ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

eak;<br />

}<br />

}<br />

separacionEntrePuntosRejil<strong>la</strong>)<br />

/separacionEntrePuntosRejil<strong>la</strong> +<br />

overri<strong>de</strong> public function actualiza_Coord<strong>en</strong>adas_Terminales():void {<br />

switch (ori<strong>en</strong>tacion) {<br />

case "W":<br />

// ********************************<br />

//<br />

// (1) o - o (2)<br />

//<br />

// ********************************<br />

numero_Punto_Rejil<strong>la</strong>_Terminal1 = (cont<strong>en</strong>edorGrafico.x -<br />

numero_Punto_Inicial_Fi<strong>la</strong>_Rejil<strong>la</strong> + 10;<br />

numero_Punto_Rejil<strong>la</strong>_Terminal2 = numero_Punto_Rejil<strong>la</strong>_Terminal1<br />

+<br />

(longitudCompon<strong>en</strong>te/2)/separacionEntrePuntosRejil<strong>la</strong>;<br />

break;<br />

numero_Columna_Rejil<strong>la</strong>_Compon<strong>en</strong>te<br />

(numero_Fi<strong>la</strong>_Rejil<strong>la</strong>_Compon<strong>en</strong>te-1)*<br />

case "N":<br />

// ********************************<br />

// (1) o<br />

// |<br />

// (2) o<br />

// ********************************<br />

numero_Punto_Rejil<strong>la</strong>_Terminal1 =<br />

+<br />

(numeroPuntosAnchoRejil<strong>la</strong> + 1);<br />

numero_Punto_Rejil<strong>la</strong>_Terminal2 = numero_Punto_Rejil<strong>la</strong>_Terminal1 +<br />

(numeroPuntosAnchoRejil<strong>la</strong>+1);<br />

break;<br />

case "E":<br />

// ********************************<br />

//<br />

// (2) o - o (1)<br />

//<br />

// ********************************<br />

numero_Punto_Rejil<strong>la</strong>_Terminal2 = (cont<strong>en</strong>edorGrafico.x -<br />

separacionEntrePuntosRejil<strong>la</strong>)<br />

/separacionEntrePuntosRejil<strong>la</strong> +<br />

numero_Punto_Inicial_Fi<strong>la</strong>_Rejil<strong>la</strong> + 10;<br />

(longitudCompon<strong>en</strong>te/2)<br />

numero_Punto_Rejil<strong>la</strong>_Terminal1 = numero_Punto_Rejil<strong>la</strong>_Terminal2<br />

+<br />

/separacionEntrePuntosRejil<strong>la</strong>;<br />

break;<br />

case "S":<br />

// ********************************<br />

// (2) o<br />

// |<br />

// (1) o<br />

// ********************************<br />

55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!