Moved math reference from platform to engine