J
jacob navia
Hi
I am programming the "ValArray" for my containers library and I am
adding operations like "clamped add" or clamped subtract:
c = ((a+b) > 65535) ? 65535 : a+b; // What name should it have?
c = ((a-b) < 0) ? 0 : a-b; // Same question
What other operations would be nice to have besides those two?
Thanks in advance
jacob
I am programming the "ValArray" for my containers library and I am
adding operations like "clamped add" or clamped subtract:
c = ((a+b) > 65535) ? 65535 : a+b; // What name should it have?
c = ((a-b) < 0) ? 0 : a-b; // Same question
What other operations would be nice to have besides those two?
Thanks in advance
jacob