#include <valfunc.h>
Inheritance diagram for ValueFunctionEllipse:
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 ValueFunctionEllipse & ValueFunctionEllipseS. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (ValueFunctionEllipse) |
Definition at line 771 of file valfunc.h.
|
|
|
Creates a new blank object of the same type as this one. Internal function used in ValueFunctionEllipse & ValueFunctionEllipseS.
Reimplemented from ValueFunctionBlip. Definition at line 2731 of file valfunc.cpp. 02732 { 02733 return(new ValueFunctionEllipse); 02734 }
|
|
Reimplemented from ValueFunctionBlip. Definition at line 778 of file valfunc.h. 00778 { return(ValueFunctionID_Ellipse); };
|
|
To read the value of this function at a given position.
Reimplemented from ValueFunctionBlip. Definition at line 2698 of file valfunc.cpp. 02699 { 02700 if (Position < MaxPos) 02701 Position = 1.0 - Position/MaxPos; 02702 else 02703 Position = (Position - MaxPos) / (1.0 - MaxPos); 02704 if ( Position>1.0 ) 02705 Position = 1.0; 02706 return sqrt(1-Position*Position); 02707 }
|