raycasting?

Hey java fans, i'm working on a little project and I have a laser that I want to make sure collides correctly. I suppose i can crawl along the ray in increments to see if anythings there but I might miss something?

By the way the only things in the way are convex (duh) triangles. Emphasis on convex because i worked hard to make them that way ; p.

So any help would be appreciated, a link a search i should do, straight up help, etc.

oh and 2d triangles at that, no 3d stuff in my little app.

Message was edited by:

dfasdfsdafsadfasdf

[574 byte] By [dfasdfsdafsadfasdfa] at [2007-11-27 5:31:10]
# 1
> Hey java fans, i'm working on a little project and I> have a laser that I want to make sure collides> correctly. On a frikkin' shark's head, perchance? *pinky to corner of mouth*
kevjavaa at 2007-7-12 14:56:05 > top of Java-index,Java Essentials,Java Programming...
# 2
Surely if it wasn't convex it wouldn't be a triangle...?
dcmintera at 2007-7-12 14:56:05 > top of Java-index,Java Essentials,Java Programming...
# 3
java.awt.Shape.contains(x,y) or java.awt.Polygon.contains(x,y)
robtafta at 2007-7-12 14:56:05 > top of Java-index,Java Essentials,Java Programming...
# 4

> > Hey java fans, i'm working on a little project and I

> > have a laser that I want to make sure collides correctly.

>

> On a frikkin' shark's head, perchance?

> *pinky to corner of mouth*

I'm a bit worried about going to next year's JavaOne conference:

[url #" style="display: block; background-image: url('http://www.videocom.it/Immagini/amorphium_austin_powers.jpg'); width: 225px; height: 224px] [/url]

Hippolytea at 2007-7-12 14:56:05 > top of Java-index,Java Essentials,Java Programming...
# 5
I just meant to say iput some work into tesselating concave polygons into triangles
dfasdfsdafsadfasdfa at 2007-7-12 14:56:05 > top of Java-index,Java Essentials,Java Programming...
# 6
Hey i already had a point in polygon function, turns out I just smoked myself retarded thank you java forums for setting me straight again.bye the way, i get it *pink finger to mouth" ! sharks with laser beams attached to their heads, it's BRILLIANT :)
dfasdfsdafsadfasdfa at 2007-7-12 14:56:05 > top of Java-index,Java Essentials,Java Programming...