Light math utils for iOS