From 1d8f6afd403c3d9e173f5b5fbe1a0a554ff7fee2 Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Sun, 23 Jul 2023 18:32:19 -0700 Subject: [PATCH] Optimize circle computation --- libraries/stdlib/stdlib_ng.mtlx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/libraries/stdlib/stdlib_ng.mtlx b/libraries/stdlib/stdlib_ng.mtlx index b36a4c4ba8..61b40b5cd3 100644 --- a/libraries/stdlib/stdlib_ng.mtlx +++ b/libraries/stdlib/stdlib_ng.mtlx @@ -1424,27 +1424,20 @@ Returns 1 if sample is inside a circle defined by center and radius; otherwise returns 0. --> - + + + + + - - - - - - - - - - - - +