109 |
return was; |
return was; |
110 |
} |
} |
111 |
|
|
112 |
|
public int translateXYZ(int into, float sx, float sy, float sz) { |
113 |
|
floats[nfloats + 0] = sx; |
114 |
|
floats[nfloats + 1] = sy; |
115 |
|
floats[nfloats + 2] = sz; |
116 |
|
int paramInd = nfloats; |
117 |
|
nfloats += 3; |
118 |
|
|
119 |
|
inds[ninds + 0] = 6; // translation xyz |
120 |
|
inds[ninds + 1] = into; |
121 |
|
inds[ninds + 2] = paramInd; |
122 |
|
int was = ninds / 3; |
123 |
|
ninds += 3; |
124 |
|
|
125 |
|
return was; |
126 |
|
} |
127 |
|
|
128 |
|
public int buoyOnCircle(int into, float cx, float cy, |
129 |
|
float rad, float px, float py) { |
130 |
|
floats[nfloats + 0] = cx; |
131 |
|
floats[nfloats + 1] = cy; |
132 |
|
floats[nfloats + 2] = rad; |
133 |
|
floats[nfloats + 3] = px; |
134 |
|
floats[nfloats + 4] = py; |
135 |
|
int paramInd = nfloats; |
136 |
|
nfloats += 5; |
137 |
|
|
138 |
|
inds[ninds + 0] = 7; // buoy xyz |
139 |
|
inds[ninds + 1] = into; |
140 |
|
inds[ninds + 2] = paramInd; |
141 |
|
int was = ninds / 3; |
142 |
|
ninds += 3; |
143 |
|
|
144 |
|
return was; |
145 |
|
} |
146 |
|
|
147 |
|
|
148 |
|
|
149 |
public int scaleXYZ(int into, float sx, float sy, float sz) { |
public int scaleXYZ(int into, float sx, float sy, float sz) { |
150 |
floats[nfloats + 0] = sx; |
floats[nfloats + 0] = sx; |
151 |
floats[nfloats + 1] = sy; |
floats[nfloats + 1] = sy; |