Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
essentials.Environment.Atmosphere.SimpleAtmosphere Class Reference
Inheritance diagram for essentials.Environment.Atmosphere.SimpleAtmosphere:
pluginbase.Objects.World.Environment.Atmosphere.AtmosphereBase pluginbase.Objects.World.Environment.IAtmosphere pluginbase.Objects.World.Environment.IEnvironmentSimulatable

Public Member Functions

 SimpleAtmosphere ()
 
override OpenTK.Vector3d GetWind (double x, double y, double z)
 Get wind at a specific time and world position More...
 
- Public Member Functions inherited from pluginbase.Objects.World.Environment.Atmosphere.AtmosphereBase
 AtmosphereBase ()
 
virtual void Simulate (double time, double x, double y, double z)
 Simulate the environment with the time, and an x/y/z More...
 

Constructor & Destructor Documentation

essentials.Environment.Atmosphere.SimpleAtmosphere.SimpleAtmosphere ( )
10  {
11  }

Member Function Documentation

override OpenTK.Vector3d essentials.Environment.Atmosphere.SimpleAtmosphere.GetWind ( double  x,
double  y,
double  z 
)
virtual

Get wind at a specific time and world position

Returns
The wind.
Parameters
xThe x coordinate.
yThe y coordinate.
zThe z coordinate.

Reimplemented from pluginbase.Objects.World.Environment.Atmosphere.AtmosphereBase.

14  {
15  return new OpenTK.Vector3d(MExt.Clamp(z / 100.0, 0.0, 3.0), 0.0, 0.0);
16  }
static float Clamp(float v, float min, float max)
Clamp the specified v, min and max.
Definition: MathExtensions.cs:277
Math extensions
Definition: MathExtensions.cs:7

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