41 |
|
|
42 |
|
if (ac == 1) { /* something with existing transform */ |
43 |
|
if ((spec = xf_context) == NULL) |
44 |
< |
return(MG_OK); /* should be error? */ |
44 |
> |
return(MG_ECNTXT); |
45 |
|
n = -1; |
46 |
|
if (spec->xarr != NULL) { /* check for iteration */ |
47 |
|
register struct xf_array *ap = spec->xarr; |
224 |
|
FVECT v1, v2; |
225 |
|
{ |
226 |
|
if (xf_context == NULL) { |
227 |
< |
v1[0] = v2[0]; |
228 |
< |
v1[1] = v2[1]; |
229 |
< |
v1[2] = v2[2]; |
227 |
> |
VCOPY(v1, v2); |
228 |
|
return; |
229 |
|
} |
230 |
|
multp3(v1, v2, xf_context->xf.xfm); |
236 |
|
FVECT v1, v2; |
237 |
|
{ |
238 |
|
if (xf_context == NULL) { |
239 |
< |
v1[0] = v2[0]; |
242 |
< |
v1[1] = v2[1]; |
243 |
< |
v1[2] = v2[2]; |
239 |
> |
VCOPY(v1, v2); |
240 |
|
return; |
241 |
|
} |
242 |
|
multv3(v1, v2, xf_context->xf.xfm); |