Sign in to follow this  
Mastaba

Seeking suggestions for better class name

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this