commit 220ae36c1f8d4517f89de666f8b54dcbc058be42
parent f8d811c81622e7f881258fb2db56e2a591cca6e5
Author: vaplv <vaplv@free.fr>
Date: Thu, 31 May 2018 16:43:53 +0200
Check that the normal submitted to <f|d>33_basis is normalized
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/real33.h b/src/real33.h
@@ -170,7 +170,7 @@ static INLINE REAL_TYPE__*
REALXY_FUNC__(basis)(REAL_TYPE__ dst[9], const REAL_TYPE__ N[3])
{
REAL_TYPE__ a[3], b[3], x[3], y[3], normal[3], len;
- ASSERT(N);
+ ASSERT(N && REALX_FUNC__(is_normalized(N)));
REALX_FUNC__(set)(normal, N);
a[0] = 1.f, a[1] = 0.f, a[2] = 0.f;
b[0] = 0.f, b[1] = 1.f, b[2] = 0.f;