Show / Hide Table of Contents

Struct Mathd

Namespace:Mapbox.Utils
Assembly:Mapbox.Utils.dll
Syntax
public struct Mathd

Fields

Deg2Rad

Declaration
public const double Deg2Rad = null
Field Value
Type Description
System.Double

Epsilon

Declaration
public const double Epsilon = null
Field Value
Type Description
System.Double

Infinity

Declaration
public const double Infinity = null
Field Value
Type Description
System.Double

NegativeInfinity

Declaration
public const double NegativeInfinity = null
Field Value
Type Description
System.Double

PI

Declaration
public const double PI = null
Field Value
Type Description
System.Double

Rad2Deg

Declaration
public const double Rad2Deg = null
Field Value
Type Description
System.Double

Methods

Abs(Double)

Declaration
public static double Abs(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Abs(Int32)

Declaration
public static int Abs(int value)
Parameters
Type Name Description
System.Int32 value
Returns
Type Description
System.Int32

Acos(Double)

Declaration
public static double Acos(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Approximately(Double, Double)

Declaration
public static bool Approximately(double a, double b)
Parameters
Type Name Description
System.Double a
System.Double b
Returns
Type Description
System.Boolean

Asin(Double)

Declaration
public static double Asin(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Atan(Double)

Declaration
public static double Atan(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Atan2(Double, Double)

Declaration
public static double Atan2(double y, double x)
Parameters
Type Name Description
System.Double y
System.Double x
Returns
Type Description
System.Double

Ceil(Double)

Declaration
public static double Ceil(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

CeilToInt(Double)

Declaration
public static int CeilToInt(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Int32

Clamp(Double, Double, Double)

Declaration
public static double Clamp(double value, double min, double max)
Parameters
Type Name Description
System.Double value
System.Double min
System.Double max
Returns
Type Description
System.Double

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

Clamp01(Double)

Declaration
public static double Clamp01(double value)
Parameters
Type Name Description
System.Double value
Returns
Type Description
System.Double

Cos(Double)

Declaration
public static double Cos(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

DeltaAngle(Double, Double)

Declaration
public static double DeltaAngle(double current, double target)
Parameters
Type Name Description
System.Double current
System.Double target
Returns
Type Description
System.Double

Exp(Double)

Declaration
public static double Exp(double power)
Parameters
Type Name Description
System.Double power
Returns
Type Description
System.Double

Floor(Double)

Declaration
public static double Floor(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

FloorToInt(Double)

Declaration
public static int FloorToInt(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Int32

Gamma(Double, Double, Double)

Declaration
public static double Gamma(double value, double absmax, double gamma)
Parameters
Type Name Description
System.Double value
System.Double absmax
System.Double gamma
Returns
Type Description
System.Double

InverseLerp(Double, Double, Double)

Declaration
public static double InverseLerp(double from, double to, double value)
Parameters
Type Name Description
System.Double from
System.Double to
System.Double value
Returns
Type Description
System.Double

Lerp(Double, Double, Double)

Declaration
public static double Lerp(double from, double to, double t)
Parameters
Type Name Description
System.Double from
System.Double to
System.Double t
Returns
Type Description
System.Double

LerpAngle(Double, Double, Double)

Declaration
public static double LerpAngle(double a, double b, double t)
Parameters
Type Name Description
System.Double a
System.Double b
System.Double t
Returns
Type Description
System.Double

Log(Double)

Declaration
public static double Log(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Log(Double, Double)

Declaration
public static double Log(double d, double p)
Parameters
Type Name Description
System.Double d
System.Double p
Returns
Type Description
System.Double

Log10(Double)

Declaration
public static double Log10(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Max(Double, Double)

Declaration
public static double Max(double a, double b)
Parameters
Type Name Description
System.Double a
System.Double b
Returns
Type Description
System.Double

Max(Double[])

Declaration
public static double Max(params double[] values)
Parameters
Type Name Description
System.Double[] values
Returns
Type Description
System.Double

Max(Int32, Int32)

Declaration
public static int Max(int a, int b)
Parameters
Type Name Description
System.Int32 a
System.Int32 b
Returns
Type Description
System.Int32

Max(Int32[])

Declaration
public static int Max(params int[] values)
Parameters
Type Name Description
System.Int32[] values
Returns
Type Description
System.Int32

Min(Double, Double)

Declaration
public static double Min(double a, double b)
Parameters
Type Name Description
System.Double a
System.Double b
Returns
Type Description
System.Double

Min(Double[])

Declaration
public static double Min(params double[] values)
Parameters
Type Name Description
System.Double[] values
Returns
Type Description
System.Double

Min(Int32, Int32)

Declaration
public static int Min(int a, int b)
Parameters
Type Name Description
System.Int32 a
System.Int32 b
Returns
Type Description
System.Int32

Min(Int32[])

Declaration
public static int Min(params int[] values)
Parameters
Type Name Description
System.Int32[] values
Returns
Type Description
System.Int32

MoveTowards(Double, Double, Double)

Declaration
public static double MoveTowards(double current, double target, double maxDelta)
Parameters
Type Name Description
System.Double current
System.Double target
System.Double maxDelta
Returns
Type Description
System.Double

MoveTowardsAngle(Double, Double, Double)

Declaration
public static double MoveTowardsAngle(double current, double target, double maxDelta)
Parameters
Type Name Description
System.Double current
System.Double target
System.Double maxDelta
Returns
Type Description
System.Double

PingPong(Double, Double)

Declaration
public static double PingPong(double t, double length)
Parameters
Type Name Description
System.Double t
System.Double length
Returns
Type Description
System.Double

Pow(Double, Double)

Declaration
public static double Pow(double d, double p)
Parameters
Type Name Description
System.Double d
System.Double p
Returns
Type Description
System.Double

Repeat(Double, Double)

Declaration
public static double Repeat(double t, double length)
Parameters
Type Name Description
System.Double t
System.Double length
Returns
Type Description
System.Double

Round(Double)

Declaration
public static double Round(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

RoundToInt(Double)

Declaration
public static int RoundToInt(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Int32

Sign(Double)

Declaration
public static double Sign(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Sin(Double)

Declaration
public static double Sin(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

SmoothDamp(Double, Double, ref Double, Double, Double, Double)

Declaration
public static double SmoothDamp(double current, double target, ref double currentVelocity, double smoothTime, double maxSpeed, double deltaTime)
Parameters
Type Name Description
System.Double current
System.Double target
System.Double currentVelocity
System.Double smoothTime
System.Double maxSpeed
System.Double deltaTime
Returns
Type Description
System.Double

SmoothDampAngle(Double, Double, ref Double, Double, Double, Double)

Declaration
public static double SmoothDampAngle(double current, double target, ref double currentVelocity, double smoothTime, double maxSpeed, double deltaTime)
Parameters
Type Name Description
System.Double current
System.Double target
System.Double currentVelocity
System.Double smoothTime
System.Double maxSpeed
System.Double deltaTime
Returns
Type Description
System.Double

SmoothStep(Double, Double, Double)

Declaration
public static double SmoothStep(double from, double to, double t)
Parameters
Type Name Description
System.Double from
System.Double to
System.Double t
Returns
Type Description
System.Double

Sqrt(Double)

Declaration
public static double Sqrt(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double

Tan(Double)

Declaration
public static double Tan(double d)
Parameters
Type Name Description
System.Double d
Returns
Type Description
System.Double
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX