freebsd-ports/graphics/renderpark/files/patch-patch.c
Maho Nakata 3585add922 graphics/renderpark System for physically based photo-realistic image synthesis
PR: 41105
Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru>
Reviewed by: knu (mentor)
2003-02-03 10:03:40 +00:00

20 lines
754 B
C

--- patch.c~ Fri Jul 26 15:36:27 2002
+++ patch.c Fri Jul 26 15:37:31 2002
@@ -1074,7 +1074,7 @@
V2Sub (D, C, CD); V2Sub (D, A, AD);
V2Add (CD, AB, AE); V2Negate (AE); V2Sub (M, A, AM);
- if (fabs(DETERMINANT(AB, CD)) < EPSILON) /* case AB /* CD */ */
+ if (fabs(DETERMINANT(AB, CD)) < EPSILON) /* case AB CD */
{
V2Sub (AB, CD, Vector);
v = DETERMINANT(AM, Vector) / DETERMINANT(AD, Vector);
@@ -1091,7 +1091,7 @@
}
#endif
}
- else if (fabs(DETERMINANT(BC, AD)) < EPSILON) /* case AD /* BC */ */
+ else if (fabs(DETERMINANT(BC, AD)) < EPSILON) /* case AD BC */
{
V2Add (AD, BC, Vector);
u = DETERMINANT(AM, Vector) / DETERMINANT(AB, Vector);