-
Notifications
You must be signed in to change notification settings - Fork 33
Questions and Answers
Many problems building occur after updating the OS, or the version of Xcode / VisualStudio you use, or moving a folder to a new location, etc.
When in doubt, delete your build and run CMake again to get a fresh one. This will address the majority of problems like this.
Yes, you can use an old-fashioned double
. Or a float
. Wait, which one should you use? Which is better? Neither really says in English that it is a number.
By defining number
we get a value which works best in most situations with Max (we prefer that you use this type) and is expressive for those who are new to coding in C++ who might be coming from a Javascript or other background.
Furthermore, by preferring the use of number
your attributes and other code written using Min can potentially target types other than a double. If Apple decides they are going to start shipping 128-bit computers, the number type can be changed without requiring every external object developer to update their code.
Additionally we could envision a future where objects written in Min target platforms with limited computational resources and use of float
instead of double
will yield better performance.
So if you specifically need a float
or a double
by all means use them with our blessing. But we believe you will be pleased with your decision to use types like number
and sample
in many cases.