bookExamples.ch26Graphics.draw2d
Class Coords

java.lang.Object
  extended by bookExamples.ch26Graphics.draw2d.Coords

public class Coords
extends java.lang.Object


Constructor Summary
Coords()
           
 
Method Summary
static int[] scaleCoords(int srcW, int srcH, int destW, int destH)
           
static int[] translateCoords(int startX, int startY, int endX, int endY)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coords

public Coords()
Method Detail

translateCoords

public static int[] translateCoords(int startX,
                                    int startY,
                                    int endX,
                                    int endY)

scaleCoords

public static int[] scaleCoords(int srcW,
                                int srcH,
                                int destW,
                                int destH)