[OT] algoritmo interseccón triangulos

04/12/2003 - 18:55 por Gandalf | Informe spam
Hola, si alguien tiene ese algoritmo a mano se lo agradeceria.

Un Saludo.

Preguntas similare

Leer las respuestas

#1 JuanI
04/12/2003 - 21:59 | Informe spam
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
<b>no se si te entiendo muy bien, pero no seria suficiente con chequear
las coordenadas?<br>
<br>
sino talvez busques esto:</b><br>
<br>
<i>Checking for Collisions<br>
The actual collision is relatively simple to check for if you let the
.NET objects do all the work. You<br>
yourself can come up with a formula to determine whether two objects
collide. If you search around,<br>
though, you&#8217;re likely to find that you have access to objects that will
do this work for you.<br>
<br>
Extracting a Rectangle from a Component<br>
Each component is automatically given a special property named a Bound.
The Bound is an<br>
instance of the Rectangle class describing where that object is on the
screen. The Rectangle class<br>
has an IntersectsWith() method that is used to determine whether one
rectangle intersects with<br>
another rectangle. When you know all that, you can easily write the
code that determines whether<br>
the rectangles collided:<br>
if (picBall.Bounds.IntersectsWith(picTarget.Bounds)){<br>
picBall has a Bounds property, which is a Rectangle. All Rectangles
have the IntersectsWith()<br>
method, which can accept another Rectangle. The result of all this is a
Boolean value just perfect for an<br>
if statement.</i><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; Premier Press - Microsoft C# Programming
for the Absolute Beginner<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Gandalf wrote:<br>
<blockquote type="cite" cite="midehNYL$">
<pre wrap="">Hola, si alguien tiene ese algoritmo a mano se lo agradeceria.

Un Saludo.


</pre>
</blockquote>
</body>
</html>
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida