Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## toxi.geom
Class CircleIntersector

    java.lang.Object
      toxi.geom.CircleIntersector

All Implemented Interfaces:
  Intersector2D

    public class CircleIntersector

extends java.lang.Object
implements Intersector2D

This class handles Circle-Ray2D intersections by implementing the `Intersector2D` interface.

Constructor Summary
`CircleIntersector(Circle circle)`

Method Summary
`IsectData2D` | `getIntersectionData()`
`boolean` | `intersectsRay(Ray2D ray)` Check if entity intersects with the given ray

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CircleIntersector

    public CircleIntersector(Circle circle)

Method Detail

### getIntersectionData

    public IsectData2D getIntersectionData()

  Specified by:
    `getIntersectionData` in interface `Intersector2D`
  Returns:
    intersection data parcel

### intersectsRay

    public boolean intersectsRay(Ray2D ray)

  Description copied from interface: `Intersector2D`
  Check if entity intersects with the given ray

  Specified by:
    `intersectsRay` in interface `Intersector2D`
  Parameters:
    `ray` - ray to check
  Returns:
    true, if ray hits the entity

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD