Show / Hide Table of Contents

Class MyBounds

Inheritance
System.Object
MyBounds
Namespace: VRageMath
Assembly: VRage.Math.dll
Syntax
public sealed class MyBounds : ValueType

Constructors

MyBounds(Single, Single, Single)

Declaration
public MyBounds(float min, float max, float def)
Parameters
Type Name Description
System.Single min
System.Single max
System.Single def

Fields

Default

Declaration
public float Default
Field Value
Type Description
System.Single

Max

Declaration
public float Max
Field Value
Type Description
System.Single

Min

Declaration
public float Min
Field Value
Type Description
System.Single

Methods

Clamp(Single)

Declaration
public float Clamp(float value)
Parameters
Type Name Description
System.Single value
Returns
Type Description
System.Single

Normalize(Single)

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

Declaration
public float Normalize(float value)
Parameters
Type Name Description
System.Single value
Returns
Type Description
System.Single

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾