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

Public Member Functions

 SymetricSerializableRange (float min, float max, bool mirror=true)
 
bool ValueBetween (float value)
 
override string ToString ()
 
SymetricSerializableRange ConvertToCosine ()
 
SymetricSerializableRange ConvertToSine ()
 
SymetricSerializableRange ConvertToCosineLongitude ()
 
string ToStringAsin ()
 
string ToStringAcos ()
 

Public Attributes

float Min
 
float Max
 

Properties

bool Mirror [get, set]
 

Detailed Description

Reflective because it can be reflected to the oposite range.

Structs not inheriting from structs is stupid.

Definition at line 92 of file SerializableRange.cs.

Constructor & Destructor Documentation

VRageMath.SymetricSerializableRange.SymetricSerializableRange ( float  min,
float  max,
bool  mirror = true 
)
inline

Definition at line 111 of file SerializableRange.cs.

Member Function Documentation

SymetricSerializableRange VRageMath.SymetricSerializableRange.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 138 of file SerializableRange.cs.

SymetricSerializableRange VRageMath.SymetricSerializableRange.ConvertToCosineLongitude ( )
inline

Definition at line 160 of file SerializableRange.cs.

SymetricSerializableRange VRageMath.SymetricSerializableRange.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 152 of file SerializableRange.cs.

override string VRageMath.SymetricSerializableRange.ToString ( )
inline

Definition at line 125 of file SerializableRange.cs.

string VRageMath.SymetricSerializableRange.ToStringAcos ( )
inline

Definition at line 187 of file SerializableRange.cs.

string VRageMath.SymetricSerializableRange.ToStringAsin ( )
inline

Definition at line 182 of file SerializableRange.cs.

bool VRageMath.SymetricSerializableRange.ValueBetween ( float  value)
inline

Definition at line 118 of file SerializableRange.cs.

Member Data Documentation

float VRageMath.SymetricSerializableRange.Max

Definition at line 98 of file SerializableRange.cs.

float VRageMath.SymetricSerializableRange.Min

Definition at line 95 of file SerializableRange.cs.

Property Documentation

bool VRageMath.SymetricSerializableRange.Mirror
getset

Definition at line 106 of file SerializableRange.cs.


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