A class that keeps a value clamped.
Lisää...
Lista kaikista jäsenistä.
Julkiset jäsenfunktiot |
| | Clamped () |
| | Creates a new Clamped instance all values being zero.
|
| | Clamped (Scalar value) |
| | Creates a new Clamped instance with zero being either the max or min.
|
| | Clamped (Scalar value, Scalar min, Scalar max) |
| | Creates a new Clamped instance.
|
|
| Clamped (Clamped copy) |
| void | Maximize () |
| | Sets it to its maximum value;.
|
| void | Minimize () |
| | Sets it to its minimum value;.
|
| Scalar | Add (Scalar value) |
| | Adds a value to the clamped vaule and returns the overflow/underflow.
|
| void | Add (ref Scalar value, out Scalar result) |
| | Adds a value to the clamped vaule and returns the overflow/underflow.
|
| void | SetValues (Scalar value, Scalar min, Scalar max) |
| | Sets all the values at once.
|
|
override string | ToString () |
|
override int | GetHashCode () |
|
override bool | Equals (object obj) |
|
bool | Equals (Clamped other) |
|
int | CompareTo (Clamped other) |
|
object | Clone () |
Staattiset julkiset jäsenfunktiot |
|
static Clamped | Parse (string s) |
|
static bool | TryParse (string s, out Clamped result) |
Ominaisuudet |
| Scalar | Value [get, set] |
| | Gets and Sets the current value.
|
| Scalar | Min [get, set] |
| | Gets and Sets the minimum value.
|
| Scalar | Max [get, set] |
| | Gets and Sets the maximum value.
|
| Scalar | Percent [get, set] |
| | Gets and Sets the percent with Min being 0 (0%) and Max being 1 (100%)
|
| bool | IsMax [get] |
| | Gets if the value is at its maximum value;.
|
| bool | IsMin [get] |
| | Gets if the value is at its minimum value;.
|
Yksityiskohtainen selite
A class that keeps a value clamped.
Rakentajien & purkajien dokumentaatio
Creates a new Clamped instance all values being zero.
Creates a new Clamped instance with zero being either the max or min.
- Parametrit:
-
| value | The min or max and the current value. |
| Clamped |
( |
Scalar |
value, |
|
|
Scalar |
min, |
|
|
Scalar |
max |
|
) |
| [inline] |
Creates a new Clamped instance.
- Parametrit:
-
| value | The current value. |
| min | The minimum possible value. |
| max | The maximum possible value. |
Jäsenfunktioiden dokumentaatio
| Scalar Add |
( |
Scalar |
value | ) |
[inline] |
Adds a value to the clamped vaule and returns the overflow/underflow.
- Parametrit:
-
- Palauttaa:
- The overflow/underflow.
| void Add |
( |
ref Scalar |
value, |
|
|
out Scalar |
result |
|
) |
| [inline] |
Adds a value to the clamped vaule and returns the overflow/underflow.
- Parametrit:
-
| value | The Value to add. |
| result | The overflow/underflow. |
| void Maximize |
( |
| ) |
[inline] |
Sets it to its maximum value;.
| void Minimize |
( |
| ) |
[inline] |
Sets it to its minimum value;.
| void SetValues |
( |
Scalar |
value, |
|
|
Scalar |
min, |
|
|
Scalar |
max |
|
) |
| [inline] |
Sets all the values at once.
- Parametrit:
-
| value | The current value. |
| min | The minimum possible value. |
| max | The maximum possible value. |
Ominaisuuksien dokumentaatio
Gets if the value is at its maximum value;.
Gets if the value is at its minimum value;.
Gets and Sets the maximum value.
Gets and Sets the minimum value.
Scalar Percent [get, set] |
Gets and Sets the percent with Min being 0 (0%) and Max being 1 (100%)
Gets and Sets the current value.
Dokumentaatio tälle luokalle luotiin seuraavasta tiedostosta:
- C:/Users/tero/AppData/Local/Temp/npo_build/Jypeli/AdvanceMath/Clamped.cs