• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Class MathHelper

Inheritance
System.Object
MathHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno
Assembly: Inferno.Desktop.dll
Syntax
public static class MathHelper

Methods

| Improve this Doc View Source

Clamp(Int32, Int32, Int32)

Declaration
public static int Clamp(int value, int min, int max)
Parameters
Type Name Description
System.Int32 value
System.Int32 min
System.Int32 max
Returns
Type Description
System.Int32
| Improve this Doc View Source

Clamp(Single, Single, Single)

Declaration
public static float Clamp(float value, float min, float max)
Parameters
Type Name Description
System.Single value
System.Single min
System.Single max
Returns
Type Description
System.Single
| Improve this Doc View Source

Distance(Single, Single)

Declaration
public static float Distance(float value1, float value2)
Parameters
Type Name Description
System.Single value1
System.Single value2
Returns
Type Description
System.Single
| Improve this Doc View Source

Lerp(Single, Single, Single)

Declaration
public static float Lerp(float value1, float value2, float amount)
Parameters
Type Name Description
System.Single value1
System.Single value2
System.Single amount
Returns
Type Description
System.Single
| Improve this Doc View Source

LerpPrecise(Single, Single, Single)

Declaration
public static float LerpPrecise(float value1, float value2, float amount)
Parameters
Type Name Description
System.Single value1
System.Single value2
System.Single amount
Returns
Type Description
System.Single
| Improve this Doc View Source

NearestMultiple(Double, Double)

Declaration
public static double NearestMultiple(double number, double multiple)
Parameters
Type Name Description
System.Double number
System.Double multiple
Returns
Type Description
System.Double
| Improve this Doc View Source

NearestMultiple(Int32, Int32)

Declaration
public static int NearestMultiple(int number, int multiple)
Parameters
Type Name Description
System.Int32 number
System.Int32 multiple
Returns
Type Description
System.Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX