bitmaps
Class PixelPair

java.lang.Object
  extended by bitmaps.PixelPair
Direct Known Subclasses:
DEPixelPair

public class PixelPair
extends java.lang.Object

Author:
Jonathan L Dautrich Jr.

Field Summary
protected  Pixel a
           
protected  Pixel b
           
 
Constructor Summary
PixelPair(Pixel a, Pixel b)
          Creates a new pixel pair from the two specified pixels.
 
Method Summary
static int floorDiv(int a, int b)
          Performs a floor division of a by b, returning the largest integer less than or equal to the result of their division.
 Pixel getA()
           
 Pixel getB()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

protected Pixel a

b

protected Pixel b
Constructor Detail

PixelPair

public PixelPair(Pixel a,
                 Pixel b)
Creates a new pixel pair from the two specified pixels. Warning: Changes made directly to the underlying pixel values will not be reflected in the values of the PixelPair, and will be overwritten by any functions that update the PixelPair.

Parameters:
a -
b -
Method Detail

floorDiv

public static int floorDiv(int a,
                           int b)
Performs a floor division of a by b, returning the largest integer less than or equal to the result of their division.

Parameters:
a -
b -
Returns:

getA

public Pixel getA()

getB

public Pixel getB()