Skip to content

Commit 63ccf57

Browse files
committed
use cons(ctx,up(cons(ctx,vp,NIL)), follows code written in INTERSECTION
1 parent bf516b4 commit 63ccf57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lisp/geo/intersection.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ register pointer argv[];
9191
eusfloat_t cz,u,v;
9292
eusfloat_t *p1, v1[3], *p2, v2[3], p2p1[3];
9393
eusfloat_t cross[3], cross2;
94+
pointer up,vp;
9495
numunion nu;
9596

9697
ckarg2(4,5);
@@ -115,7 +116,8 @@ register pointer argv[];
115116

116117
u=determinant3(p2p1,v2,cross)/cross2;
117118
v=determinant3(p2p1,v1,cross)/cross2;
118-
return(cons(ctx,makeflt(u),cons(ctx,makeflt(v),NIL))); }
119+
up=makeflt(u); vp=makeflt(v);
120+
return(cons(ctx,up,cons(ctx,vp,NIL))); }
119121

120122

121123
/*

0 commit comments

Comments
 (0)