Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
CommNet.CommRangeModel Class Reference
Inheritance diagram for CommNet.CommRangeModel:
CommNet.IRangeModel

Public Member Functions

double GetMaximumRange (double aPower, double bPower)
 Returns the maximum range between the two antenna powers More...
 
double GetNormalizedRange (double aPower, double bPower, double distance)
 Given two antenna powers, return the 1 - distance / (their range) More...
 
bool InRange (double aPower, double bPower, double sqrDistance)
 Return true iff the connection a<->b is in range, given the square of the distance between them sqrDistance More...
 

Member Function Documentation

double CommNet.CommRangeModel.GetMaximumRange ( double  aPower,
double  bPower 
)
inline

Returns the maximum range between the two antenna powers

Parameters
aPower
bPower
Returns

Implements CommNet.IRangeModel.

double CommNet.CommRangeModel.GetNormalizedRange ( double  aPower,
double  bPower,
double  distance 
)
inline

Given two antenna powers, return the 1 - distance / (their range)

Parameters
aPower
bPower
distance
Returns

Implements CommNet.IRangeModel.

bool CommNet.CommRangeModel.InRange ( double  aPower,
double  bPower,
double  sqrDistance 
)
inline

Return true iff the connection a<->b is in range, given the square of the distance between them sqrDistance

Parameters
aPower
bPower
sqrDistance
Returns

Implements CommNet.IRangeModel.


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