org.openmali.collision
Class PolygonCollision

java.lang.Object
  extended by org.openmali.collision.PolygonCollision

public abstract class PolygonCollision
extends java.lang.Object


Constructor Summary
PolygonCollision()
           
 
Method Summary
static boolean contains(Tuple2f[] data, Tuple2f point)
           
static boolean contains(Tuple3f[] data, Tuple2f point)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonCollision

public PolygonCollision()
Method Detail

contains

public static boolean contains(Tuple2f[] data,
                               Tuple2f point)
Parameters:
data - The polygon data
point - The point to test
Returns:
true if the point is strictly in the polygon, false if it's strictly out, and false or true if it's on the boundary

contains

public static boolean contains(Tuple3f[] data,
                               Tuple2f point)
Parameters:
data - The polygon data
point - The point to test
Returns:
true if the point is strictly in the polygon, false if it's strictly out, and false or true if it's on the boundary