The Physiologist's Friend Simulation API

ch.unizh.ini.friend.graphics
Interface Intersectable

All Superinterfaces:
Cloneable, Transformable
All Known Implementing Classes:
ConvexPolygon, ShapeList

public interface Intersectable
extends Transformable

Declares the interface for a Transformable that can be intersected with another shape.

Version:
$Revision: 1.4 $
Author:
Christof Marti

Method Summary
 float area()
          Computes the area of this geometric object.
 Intersectable intersect(Intersectable other)
          Computes the area of intersection between this object and the given other object.
 
Methods inherited from interface ch.unizh.ini.friend.graphics.Transformable
apply, clone, rotate, rotate, scale, scale, translate
 

Method Detail

intersect

Intersectable intersect(Intersectable other)
Computes the area of intersection between this object and the given other object.

Parameters:
other - The object to intersect with.
Returns:
The intersection area.

area

float area()
Computes the area of this geometric object.

Returns:
The area.

http://www.ini.unizh.ch/~tobi/friend