es.ucm.look.ar.math.collision.debug
Class SphericalDebugArmature

java.lang.Object
  extended by es.ucm.look.ar.math.collision.SphericalArmature
      extended by es.ucm.look.ar.math.collision.debug.SphericalDebugArmature
All Implemented Interfaces:
Armature, DebugArmature

public class SphericalDebugArmature
extends SphericalArmature
implements DebugArmature


Constructor Summary
SphericalDebugArmature(Point3 center, float radius)
           
 
Method Summary
 void debugDraw(GL10 gl)
          Debug draw
 Point3 getIntersectionPoint(Ray r)
          Test whether a ray intersects with the armature.
 
Methods inherited from class es.ucm.look.ar.math.collision.SphericalArmature
contains, getRadius, intersects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface es.ucm.look.ar.math.collision.Armature
contains, intersects
 

Constructor Detail

SphericalDebugArmature

public SphericalDebugArmature(Point3 center,
                              float radius)
Method Detail

debugDraw

public void debugDraw(GL10 gl)
Description copied from interface: DebugArmature
Debug draw

Specified by:
debugDraw in interface DebugArmature

getIntersectionPoint

public Point3 getIntersectionPoint(Ray r)
Description copied from interface: Armature
Test whether a ray intersects with the armature. If it does, returns the intersection point. If it doesn't, returns null

Specified by:
getIntersectionPoint in interface Armature
Overrides:
getIntersectionPoint in class SphericalArmature
Parameters:
r - the ray
Returns:
the intersection point. null if there is no intersection