com.brackeen.javagamebook.graphics3D
Class ScanConverter.Scan

java.lang.Object
  extended bycom.brackeen.javagamebook.graphics3D.ScanConverter.Scan
Enclosing class:
ScanConverter

public static class ScanConverter.Scan
extends java.lang.Object

A horizontal scan line.


Field Summary
 int left
           
 int right
           
 
Constructor Summary
ScanConverter.Scan()
           
 
Method Summary
 void clear()
          Clears this scan line.
 boolean equals(int left, int right)
          Checks if this scan is equal to the specified values.
 boolean isValid()
          Determines if this scan is valid (if left <= right).
 void setBoundary(int x)
          Sets the left and right boundary for this scan if the x value is outside the current boundary.
 void setTo(int left, int right)
          Sets this scan.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

left

public int left

right

public int right
Constructor Detail

ScanConverter.Scan

public ScanConverter.Scan()
Method Detail

setBoundary

public void setBoundary(int x)
Sets the left and right boundary for this scan if the x value is outside the current boundary.


clear

public void clear()
Clears this scan line.


isValid

public boolean isValid()
Determines if this scan is valid (if left <= right).


setTo

public void setTo(int left,
                  int right)
Sets this scan.


equals

public boolean equals(int left,
                      int right)
Checks if this scan is equal to the specified values.