50 |
if(dbg) pa("AffineCoordSys "+ninds/3+": "+into+" '"+depth+" --- "+ |
if(dbg) pa("AffineCoordSys "+ninds/3+": "+into+" '"+depth+" --- "+ |
51 |
cx+" "+cy+" "+x_x+" "+x_y+" "+y_x+" "+y_y); |
cx+" "+cy+" "+x_x+" "+x_y+" "+y_x+" "+y_y); |
52 |
|
|
|
floats[nfloats + 0] = cx; |
|
|
floats[nfloats + 1] = cy; |
|
|
floats[nfloats + 2] = depth; |
|
|
floats[nfloats + 3] = x_x; |
|
|
floats[nfloats + 4] = x_y; |
|
|
floats[nfloats + 5] = y_x; |
|
|
floats[nfloats + 6] = y_y; |
|
53 |
int paramInd = nfloats; |
int paramInd = nfloats; |
54 |
nfloats += 7; |
nfloats += 7; |
55 |
|
|
60 |
int was = ninds / 3; |
int was = ninds / 3; |
61 |
ninds += 3; |
ninds += 3; |
62 |
|
|
63 |
|
setAffineParams(was, depth, cx, cy, x_x, x_y, y_x, y_y); |
64 |
|
|
65 |
return was; |
return was; |
66 |
} |
} |
67 |
|
|
68 |
|
public void setAffineParams( |
69 |
|
int cs, float depth, float cx, float cy, |
70 |
|
float x_x, float x_y, float y_x, float y_y) { |
71 |
|
int ind = inds[cs + 2]; |
72 |
|
floats[ind + 0] = cx; |
73 |
|
floats[ind + 1] = cy; |
74 |
|
floats[ind + 2] = depth; |
75 |
|
floats[ind + 3] = x_x; |
76 |
|
floats[ind + 4] = x_y; |
77 |
|
floats[ind + 5] = y_x; |
78 |
|
floats[ind + 6] = y_y; |
79 |
|
} |
80 |
|
|
81 |
public int rotateXY(int into, float degrees) { |
public int rotateXY(int into, float degrees) { |
82 |
floats[nfloats + 0] = degrees; |
floats[nfloats + 0] = degrees; |
83 |
int paramInd = nfloats; |
int paramInd = nfloats; |