Jump to content
  • Advertisement
Sign in to follow this  

Seeking suggestions for better class name

This topic is 4267 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have this following class in my current game:
class AsymptoticPowerMap:public ParameterMap
	AsymptoticPowerMap(float power):n(power){};
	float Map(float t){return 1-pow(1-t,n);}
	float n;

The name of it leaves much to be desired, so does anyone know what functions of the form implemented by the Map member function are called? The best I could think of was this generic name which describes a couple of its properties, but there are an infinite number of other functions that share those properties. Also, yes, I realise that the default constructor results in a function that is not asymptotic, that's one of the things bugging me, but generally when this class is used n>1 and it is asymptotic.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!