Class TemperatureAlgorithm
- Namespace
- S1API.Temperature
- Assembly
- S1API.dll
Queries temperatures with the game's native temperature algorithm.
public static class TemperatureAlgorithm
- Inheritance
-
TemperatureAlgorithm
- Inherited Members
Methods
GetTemperatureAtPoint(float, Vector3, Vector3, TemperatureEmitterInfo[])
Calculates the temperature at a world position from an ambient temperature and emitter snapshots.
public static float GetTemperatureAtPoint(float ambientTemperature, Vector3 originPoint, Vector3 point, TemperatureEmitterInfo[] emitters)
Parameters
ambientTemperaturefloatThe ambient temperature in degrees Celsius.
originPointVector3The world origin forwarded to the native API for signature compatibility. The current native implementation evaluates world-space emitter and query positions directly and does not otherwise use this value.
pointVector3The world position to query.
emittersTemperatureEmitterInfo[]The emitter snapshots to include in the calculation.
Returns
- float
The temperature at
pointin degrees Celsius.
Remarks
This method does not discover scene emitters or register the supplied snapshots with a grid.
Exceptions
- ArgumentNullException
emittersisnull.- ArgumentOutOfRangeException
A scalar or vector input is not finite.