wodka.util
Class LinearTransform

java.lang.Object
  extended bywodka.util.LinearTransform

public class LinearTransform
extends java.lang.Object

Performs linear transformations of 2D Koordinates.


Constructor Summary
LinearTransform(int aMax, int bMax, int w, int h, double kr, int offset)
           
 
Method Summary
 int transX(int a)
           
 int transY(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearTransform

public LinearTransform(int aMax,
                       int bMax,
                       int w,
                       int h,
                       double kr,
                       int offset)
Parameters:
aMax - World koordinates maximal x value.
bMax - World koordinates maximal y value.
w - Panel maximal x value.
h - Panel maximal y value.
kr - Percentage of border.
offset - Offset in x and y.
Method Detail

transX

public int transX(int a)

transY

public int transY(int b)