Space Engineers
Public Member Functions | Public Attributes | List of all members
VRageMath.SerializableRange Struct Reference

Public Member Functions

 SerializableRange (float min, float max)
 
bool ValueBetween (float value)
 
override string ToString ()
 
SerializableRange ConvertToCosine ()
 
SerializableRange ConvertToSine ()
 
SerializableRange ConvertToCosineLongitude ()
 
string ToStringAsin ()
 
string ToStringAcos ()
 
string ToStringLongitude ()
 

Public Attributes

float Min
 
float Max
 

Detailed Description

Definition at line 8 of file SerializableRange.cs.

Constructor & Destructor Documentation

VRageMath.SerializableRange.SerializableRange ( float  min,
float  max 
)
inline

Definition at line 17 of file SerializableRange.cs.

Member Function Documentation

SerializableRange VRageMath.SerializableRange.ConvertToCosine ( )
inline

When the range is an angle this method changes it to the cosines of the angle.

The angle is expected to be in degrees.

Also beware that cosine is a decreasing function in [0,90], for that reason the minimum and maximum are swaped.

Definition at line 41 of file SerializableRange.cs.

SerializableRange VRageMath.SerializableRange.ConvertToCosineLongitude ( )
inline

Definition at line 63 of file SerializableRange.cs.

SerializableRange VRageMath.SerializableRange.ConvertToSine ( )
inline

When the range is an angle this method changes it to the sines of the angle.

The angle is expected to be in degrees.

Definition at line 55 of file SerializableRange.cs.

override string VRageMath.SerializableRange.ToString ( )
inline

Definition at line 28 of file SerializableRange.cs.

string VRageMath.SerializableRange.ToStringAcos ( )
inline

Definition at line 76 of file SerializableRange.cs.

string VRageMath.SerializableRange.ToStringAsin ( )
inline

Definition at line 71 of file SerializableRange.cs.

string VRageMath.SerializableRange.ToStringLongitude ( )
inline

Definition at line 81 of file SerializableRange.cs.

bool VRageMath.SerializableRange.ValueBetween ( float  value)
inline

Definition at line 23 of file SerializableRange.cs.

Member Data Documentation

float VRageMath.SerializableRange.Max

Definition at line 15 of file SerializableRange.cs.

float VRageMath.SerializableRange.Min

Definition at line 12 of file SerializableRange.cs.


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