What’s the meaning of “ValueType()” ?
Those default construct the “ValueType”. If it’s a primitive number type, it will end up as zero. But what is the problem you are having?
Is the “ValueType” a template type? I want to know the value of “ValueType()” statement?
what Xenakios says: valueType() returns 0 default, so it gives a 0 in the right type of variable… (int)0 or (float)0.f or whatever
And why it’s done like that instead of just writing 0 or 0.0 or 0.0f in the code : to keep the calculations using the correct numeric type so needless and/or harmful conversions/truncations can be avoided.