#include <valfunc.h>
Inheritance diagram for ValueFunctionThumbtack:
Public Member Functions | |
virtual double | GetValue (double Position) |
To read the value of this function at a given position. | |
virtual ValueFunctionID | GetUniqueID (void) |
Protected Member Functions | |
virtual ValueFunctionBlip * | CreateInstance (void) |
Creates a new blank object of the same type as this one. Internal function used in ValueFunctionThumbtack & ValueFunctionThumbtackS. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (ValueFunctionThumbtack) |
/\ __- -__
Definition at line 804 of file valfunc.h.
|
|
|
Creates a new blank object of the same type as this one. Internal function used in ValueFunctionThumbtack & ValueFunctionThumbtackS.
Reimplemented from ValueFunctionBlip. Definition at line 2792 of file valfunc.cpp. 02793 { 02794 return(new ValueFunctionThumbtack); 02795 }
|
|
Reimplemented from ValueFunctionBlip. Definition at line 811 of file valfunc.h. 00811 { return(ValueFunctionID_Thumbtack); };
|
|
To read the value of this function at a given position.
Reimplemented from ValueFunctionBlip. Definition at line 2758 of file valfunc.cpp. 02759 { 02760 if (Position < MaxPos) 02761 Position = Position / MaxPos; 02762 else 02763 Position = 1.0 - ((Position - MaxPos) / (1.0 - MaxPos)); 02764 02765 if ( Position>1.0 ) 02766 Position = 1.0; 02767 return 1.0 - sqrt(1-Position*Position); 02768 }
|