(C++)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::curves::LinearFunction Class Referencefinal
Inheritance diagram for grail::curves::LinearFunction:
Collaboration diagram for grail::curves::LinearFunction:

Public Member Functions

 LinearFunction (float initSlope, float initIntercept)
 
 LinearFunction (std::pair< float, float > firstPoint, std::pair< float, float > secondPoint)
 
virtual float Sample (float argument) const override
 Sample - User-defined method which processes provided value (currently vector of values - multidemensional curves will soon become deprecated). More...
 
float GetSlope () const
 
float GetIntercept () const
 
CurveTypeId GetTypeId () const override
 
- Public Member Functions inherited from grail::curves::Curve
 Curve (const Curve &other)=default
 
 Curve (Curve &&other)=default
 

Member Function Documentation

float grail::curves::LinearFunction::Sample ( float  argument) const
overridevirtual

Sample - User-defined method which processes provided value (currently vector of values - multidemensional curves will soon become deprecated).

Parameters
argument
Returns
another value

Implements grail::curves::Curve.


The documentation for this class was generated from the following files: