Метод | Описание | |
---|---|---|
Clamp ( float value, float min, float max ) : float |
Restricts a value to be within a specified range.
|
|
Lerp ( float x, float y, float s ) : float |
Performs a linear interpolation.
|
|
MouseDirection ( Device graphicsDevice, |
Computes a mouse direction in world coordinates.
|
|
Saturate ( float value ) : float |
Restricts a value to be within a zero to one range.
|
public static Clamp ( float value, float min, float max ) : float | ||
value | float | The value to clamp. |
min | float | The minimum value. |
max | float | The maximum value. |
Результат | float |
public static Lerp ( float x, float y, float s ) : float | ||
x | float | First parameter. |
y | float | Second parameter. |
s | float | A value that linearly interpolates between parameters. |
Результат | float |
public static MouseDirection ( Device graphicsDevice, |
||
graphicsDevice | Device | Virtual adapter used to perform rendering. |
camera | Allows observing the scene with the mouse and keyboard. | |
mousePosition | System.Vector2 | Position of a mouse in screen coordinates. |
Результат | System.Vector3 |
public static Saturate ( float value ) : float | ||
value | float | The value to saturate. |
Результат | float |