#include <tFunction.h>
Public Member Functions | |
tFunction () | |
constructor | |
tFunction (REAL offset, REAL slope) | |
constructor | |
~tFunction () | |
destructor | |
REAL | Evaluate (REAL argument) const |
evaluates the function | |
REAL | operator() (REAL argument) const |
evaluation operator | |
tFunction & | SetOffset (REAL const &offset) |
Sets offset value. | |
REAL const & | GetOffset (void) const |
Gets offset value. | |
tFunction const & | GetOffset (REAL &offset) const |
Gets offset value. | |
tFunction & | SetSlope (REAL const &slope) |
Sets function slope. | |
REAL const & | GetSlope (void) const |
Gets function slope. | |
tFunction const & | GetSlope (REAL &slope) const |
Gets function slope. | |
Public Attributes | |
REAL | offset_ |
offset value | |
REAL | slope_ |
function slope |
Definition at line 35 of file tFunction.h.
tFunction::tFunction | ( | void | ) |
tFunction::~tFunction | ( | void | ) |
evaluates the function
argument |
Definition at line 56 of file tFunction.cpp.
References offset_, and slope_.
Referenced by zShapePolygon::isInside(), zShapeCircle::isInteracting(), zShapePolygon::render(), zShapeCircle::render(), zShapePolygon::render2d(), and zShapeCircle::render2d().
evaluation operator
function network message reading operator
Definition at line 79 of file tFunction.h.
00080 { 00081 return Evaluate( argument ); 00082 }
Sets offset value.
offset | offset value to set |
Definition at line 127 of file tFunction.h.
References offset_.
Referenced by zZoneInfluenceItemPosition::apply(), zZoneInfluenceItemScale::apply(), operator>>(), zZone::ReadSync(), gZone::ReadSync(), zZone::SetFunctionNow(), gZone::SetFunctionNow(), and gZone::SetReferenceTime().
00128 { 00129 this->offset_ = offset; 00130 return *this; 00131 }
REAL const & tFunction::GetOffset | ( | void | ) | const [inline] |
Gets offset value.
Definition at line 94 of file tFunction.h.
References offset_.
Referenced by zEffectorCycleAcceleration::effect(), operator<<(), and zZone::ReadSync().
00095 { 00096 return this->offset_; 00097 }
Gets offset value.
offset | offset value to fill |
Definition at line 110 of file tFunction.h.
References offset_.
00111 { 00112 offset = this->offset_; 00113 return *this; 00114 }
Sets function slope.
slope | function slope to set |
Definition at line 176 of file tFunction.h.
References slope_.
Referenced by zZoneInfluenceItemPosition::apply(), zZoneInfluenceItemScale::apply(), operator>>(), zZone::ReadSync(), gZone::ReadSync(), gZone::SetExpansionSpeed(), gZone::SetRotationAcceleration(), and gZone::SetVelocity().
00177 { 00178 this->slope_ = slope; 00179 return *this; 00180 }
REAL const & tFunction::GetSlope | ( | void | ) | const [inline] |
Gets function slope.
Definition at line 143 of file tFunction.h.
References slope_.
Referenced by gZone::GetExpansionSpeed(), gZone::GetRotationAcceleration(), gZone::GetVelocity(), operator<<(), zZone::ReadSync(), zZone::SetFunctionNow(), and gZone::SetFunctionNow().
00144 { 00145 return this->slope_; 00146 }
Gets function slope.
slope | function slope to fill |
Definition at line 159 of file tFunction.h.
References slope_.
00160 { 00161 slope = this->slope_; 00162 return *this; 00163 }
offset value
Definition at line 46 of file tFunction.h.
Referenced by Evaluate(), GetOffset(), and SetOffset().
function slope
Definition at line 47 of file tFunction.h.
Referenced by Evaluate(), GetSlope(), and SetSlope().