• Advertisement
Sign in to follow this  

Seeking suggestions for better class name

This topic is 3972 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
{
public:
	AsymptoticPowerMap():n(1.0f){};
	AsymptoticPowerMap(float power):n(power){};
	float Map(float t){return 1-pow(1-t,n);}
private:
	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
Advertisement
Sign in to follow this  

  • Advertisement