org.fixbin.ddd
Interface Object3D

All Known Implementing Classes:
Line, Point, Quadrangle, Triangle

public interface Object3D

This Interface defines the required methods for 3D Objects to be displayed in a Camera


Method Summary
 long getDistance()
          This method returns the "z" distance from the camera (required for sorting)
 void render(Graphics g)
          This method requests the object to render itself to a graphics object.
 

Method Detail

render

public void render(Graphics g)
This method requests the object to render itself to a graphics object. This can be the screen, an image, file, etc.

Parameters:
g - (Graphics) the graphics interface to render to

getDistance

public long getDistance()
This method returns the "z" distance from the camera (required for sorting)

Returns:
the distance (long)