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

Public Member Functions

 MyBounds (float min, float max, float def)
 
float Normalize (float value)
 Normalize value inside the bounds so that 0 is Min and 1 is Max. More...
 
float Clamp (float value)
 
override string ToString ()
 

Public Attributes

float Min
 
float Max
 
float Default
 

Detailed Description

Definition at line 8 of file MyBounds.cs.

Constructor & Destructor Documentation

VRageMath.MyBounds.MyBounds ( float  min,
float  max,
float  def 
)
inline

Definition at line 14 of file MyBounds.cs.

Member Function Documentation

float VRageMath.MyBounds.Clamp ( float  value)
inline

Definition at line 29 of file MyBounds.cs.

float VRageMath.MyBounds.Normalize ( float  value)
inline

Normalize value inside the bounds so that 0 is Min and 1 is Max.

Definition at line 24 of file MyBounds.cs.

override string VRageMath.MyBounds.ToString ( )
inline

Definition at line 34 of file MyBounds.cs.

Member Data Documentation

float VRageMath.MyBounds.Default

Definition at line 12 of file MyBounds.cs.

float VRageMath.MyBounds.Max

Definition at line 11 of file MyBounds.cs.

float VRageMath.MyBounds.Min

Definition at line 10 of file MyBounds.cs.


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