<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br><hr id="stopSpelling">From: sr.whiteskull@hotmail.com<br>To: cconclase-bounces@listas.conclase.net<br>Subject: Resolver Z usando los angulos Horizontal y Vertical<br>Date: Wed, 26 Aug 2009 20:30:37 +0000<br><br>



<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>


<span class="EC_Apple-style-span" style="color:rgb(0, 0, 0);font-size:11px"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:11px"><tbody><tr><td colspan="2" style="vertical-align:top;text-align:left;font-family:Verdana, Arial, Helvetica, sans-serif;padding-top:4px;padding-right:4px;padding-bottom:4px;padding-left:4px"><span class="EC_postbody" style="color:rgb(0, 0, 51);font-size:12px;line-height:18px">Q tal chicos, no se cómo andarán de matemáticas, pero yo fatal... <img src="http://lospillaos.es/foro/images/smiles/icon_redface.gif" alt="Ruborizado" border="0"> <br><br>No consigo dar con la posición Z para un vector 3D... <br><br></span><table class="EC_forumline" cellspacing="1" cellpadding="3" border="0" style="font-size:11px;width:781px;margin-left:20px"><tbody><tr><td style="vertical-align:top;text-align:left;font-family:Verdana, Arial, Helvetica, sans-serif;padding-top:4px;padding-right:4px;padding-bottom:4px;padding-left:4px"><span class="EC_genmed" style="font-size:11px"><b>Código:</b></span></td></tr><tr><td class="code" style="vertical-align:top;text-align:left;font-family:'Lucida Console', 'Courier New', Courier, monospace;color:rgb(102, 102, 102);background-color:rgb(249, 249, 249);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:7px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(204, 204, 204);border-right-color:rgb(204, 204, 204);border-bottom-color:rgb(204, 204, 204);border-left-color:rgb(217, 224, 33);padding-top:4px;padding-right:4px;padding-bottom:4px;padding-left:4px">... <br>... <br>      // obtenemos el angulo en radianes <br>      anguloH=atan2(vista.z-pos.z,vista.x -pos.x); <br>      anguloV=atan2(vista.z-pos.z,vista.y -pos.y); <br>       <br>      p.x=radio*cos(anguloH); <br>      p.y=radio*cos(anguloV); <br>      // Que pueo hacer X o Y <br>      //p.z=sin(anguloH); // funciona pero solo en horizontal <br>      //p.z=sin(anguloV); // funciona pero solo en vertical <br>... <br>...</td></tr></tbody></table><span class="EC_postbody" style="color:rgb(0, 0, 51);font-size:12px;line-height:18px"><br><br>gracias a todo aquel que me aporte una solución sencilla...</span></td></tr><tr></tr></tbody></table><br></span><br><hr>Connect to the next generation of MSN Messenger   <a href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline">Get it now! </a><br /><hr />Connect to the next generation of MSN Messenger   <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>