Skip to content
Snippets Groups Projects
Commit 70d526cd authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: neg(x) instead of '1 - pos0(x)' for less-than 0 check

- fewer operations

ENH: replace 'neg(x)*a + pos0(x)*b' with 'lerp(a, b, pos0(x))'

- uses pos0 as a 0-1 selector. Fewer operations.
parent e1a71001
Branches
Tags
1 merge request!593Field functions for lerp and clamp. Add clamping as Field methods
Showing
with 32 additions and 27 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment