- Removed SCStart/EndBuffering as far as possible and fixed an issue with
the capture command in that it not put resluts into the Tcl interpreter. This broke scriptcontext scripts in complicated situations. - Resolved some issues with the TAS calculation and negative scattering sense. - Fixed a bug which did not reset the state to idle after checking reachability in confvirtualmot.c SKIPPED: psi/autowin.c psi/eigera2.c psi/jvlprot.c psi/makefile_linux psi/sinqhttpopt.c psi/tasscan.c
This commit is contained in:
15
vector.c
15
vector.c
@ -123,17 +123,14 @@ MATRIX vectorCrossProduct(MATRIX v1, MATRIX v2)
|
||||
return NULL;
|
||||
}
|
||||
vectorSet(result, 0,
|
||||
vectorGet(v1, 1) * vectorGet(v2, 2) - vectorGet(v1,
|
||||
2) *
|
||||
vectorGet(v2, 1));
|
||||
vectorGet(v1, 1) * vectorGet(v2, 2)
|
||||
- vectorGet(v1,2) * vectorGet(v2, 1));
|
||||
vectorSet(result, 1,
|
||||
vectorGet(v1, 2) * vectorGet(v2, 0) - vectorGet(v1,
|
||||
0) *
|
||||
vectorGet(v2, 2));
|
||||
vectorGet(v1, 2) * vectorGet(v2, 0)
|
||||
- vectorGet(v1,0) * vectorGet(v2, 2));
|
||||
vectorSet(result, 2,
|
||||
vectorGet(v1, 0) * vectorGet(v2, 1) - vectorGet(v1,
|
||||
1) *
|
||||
vectorGet(v2, 0));
|
||||
vectorGet(v1, 0) * vectorGet(v2, 1)
|
||||
- vectorGet(v1, 1) * vectorGet(v2, 0));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user