moving some math class from nGine to nCore