org.reprap.geometry.polygons
Class BooleanGrid.DDA

java.lang.Object
  extended by org.reprap.geometry.polygons.BooleanGrid.DDA
Enclosing class:
BooleanGrid

 class BooleanGrid.DDA
extends java.lang.Object

Straight-line DDA

Author:
ensab

Field Summary
private  BooleanGrid.iPoint count
           
private  BooleanGrid.iPoint delta
           
private  boolean finished
           
private  BooleanGrid.iPoint p
           
private  int steps
           
private  int taken
           
private  boolean xPlus
           
private  boolean yPlus
           
 
Constructor Summary
BooleanGrid.DDA(BooleanGrid.iPoint s, BooleanGrid.iPoint e)
          Set up the DDA between a start and an end point
 
Method Summary
(package private)  BooleanGrid.iPoint next()
          Return the next point along the line, or null if the last point returned was the final one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delta

private BooleanGrid.iPoint delta

count

private BooleanGrid.iPoint count

p

private BooleanGrid.iPoint p

steps

private int steps

taken

private int taken

xPlus

private boolean xPlus

yPlus

private boolean yPlus

finished

private boolean finished
Constructor Detail

BooleanGrid.DDA

BooleanGrid.DDA(BooleanGrid.iPoint s,
                BooleanGrid.iPoint e)
Set up the DDA between a start and an end point

Parameters:
s -
e -
Method Detail

next

BooleanGrid.iPoint next()
Return the next point along the line, or null if the last point returned was the final one.

Returns: