Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/charisee_dev/examples/det3/det-0-byhand.diderot
ViewVC logotype

View of /branches/charisee_dev/examples/det3/det-0-byhand.diderot

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3303 - (download) (annotate)
Fri Oct 16 18:47:00 2015 UTC (5 years, 7 months ago) by cchiw
File size: 412 byte(s)
add to examples
int ires=200;
field#2(3)[3,3] V= c4hexic ⊛ image("slab-c4h-ten9-small.nrrd");

strand raycast(int ui, int vi) {
tensor[3,3] F=V([ui,vi,1]);
real d=F[1,0];
real e=F[1,1];
real f=F[1,2];
real g=F[2,0];
real h=F[2,1];
real i=F[2,2];

output real out=(F[0,0]*(e*i- f*g))-(F[0,1]*(d*i-f*g))+(F[0,1]*(d*h-e*g));

  update {

initially [ raycast(ui, vi) | vi in 0..ires-1, ui in 0..ires-1 ];

ViewVC Help
Powered by ViewVC 1.0.0