26 |
*/ |
*/ |
27 |
|
|
28 |
public abstract class AffineVobCoorder implements VobCoorder { |
public abstract class AffineVobCoorder implements VobCoorder { |
29 |
/** Create a new coordinate system. |
/** Default implementation using affineCoordsys. |
30 |
*/ |
*/ |
31 |
public int coordsys(int into, Object key, float depth, |
public int coordsys(int into, float depth, |
32 |
float x, float y, float w, float h) { |
float x, float y, float w, float h) { |
33 |
return affineCoordsys(into, key, depth, x+w/2.0f, y+h/2.0f, |
return affineCoordsys(into, depth, x+w/2.0f, y+h/2.0f, |
34 |
w/2.0f, 0, 0, h/2.0f); |
w/2.0f, 0, 0, h/2.0f); |
35 |
} |
} |
36 |
|
|
37 |
public int coordsys(Object key, float depth, |
public abstract int affineCoordsys(int into, float depth, |
|
float x, float y, float w, float h) { |
|
|
return coordsys(0, key, depth, x, y, w, h); |
|
|
} |
|
|
|
|
|
|
|
|
public abstract int affineCoordsys(int into, Object key, float depth, |
|
38 |
float x, float y, |
float x, float y, |
39 |
float xx, float xy, float yx, float yy); |
float xx, float xy, float yx, float yy); |
40 |
|
|
|
public int affineCoordsys(Object key, float depth, |
|
|
float x, float y, |
|
|
float xx, float xy, float yx, float yy) { |
|
|
return affineCoordsys(0, key, depth, x, y, xx, xy, yx, yy); |
|
|
} |
|
41 |
} |
} |
42 |
|
|
43 |
|
|