Kerbal Space Program
1.12.4
|
The range model used by comment. Any range model needs to implement two methds: one for determining whether two nodes of the given power are in range, and one for determining what the uncorrected 0-1 strength of the link is. More...
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) |
Return true iff the connection a<->b is in range, given the square of the distance between them sqrDistance More... | |
bool | InRange (double aPower, double bPower, double sqrDistance) |
Given two antenna powers, return the 1 - distance / (their range) More... | |
The range model used by comment. Any range model needs to implement two methds: one for determining whether two nodes of the given power are in range, and one for determining what the uncorrected 0-1 strength of the link is.
double CommNet.IRangeModel.GetMaximumRange | ( | double | aPower, |
double | bPower | ||
) |
Returns the maximum range between the two antenna powers
aPower | |
bPower |
Implemented in CommNet.CommRangeModel.
double CommNet.IRangeModel.GetNormalizedRange | ( | double | aPower, |
double | bPower, | ||
double | distance | ||
) |
Return true iff the connection a<->b is in range, given the square of the distance between them sqrDistance
aPower | |
bPower | |
sqrDistance |
Implemented in CommNet.CommRangeModel.
bool CommNet.IRangeModel.InRange | ( | double | aPower, |
double | bPower, | ||
double | sqrDistance | ||
) |
Given two antenna powers, return the 1 - distance / (their range)
aPower | |
bPower | |
distance |
Implemented in CommNet.CommRangeModel.