Click or drag to resize

MathHelper Class

Contains commonly used pre-calculated values and mathematical operations.
Inheritance Hierarchy
SystemObject
  SampSharp.Entities.SAMPMathHelper

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static class MathHelper

The MathHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBarycentric
Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates.
Public methodStatic memberCatmullRom
Performs a Catmull-Rom interpolation using the specified positions.
Public methodStatic memberClamp(Int32, Int32, Int32)
Restricts a value to be within a specified range.
Public methodStatic memberClamp(Single, Single, Single)
Restricts a value to be within a specified range.
Public methodStatic memberDistance
Calculates the absolute value of the difference of two values.
Public methodStatic memberHermite
Performs a Hermite spline interpolation.
Public methodStatic memberIsPowerOfTwo
Determines if value is powered by two.
Public methodStatic memberLerp
Linearly interpolates between two values.
Public methodStatic memberMax(Int32, Int32)
Returns the greater of two values.
Public methodStatic memberMax(Single, Single)
Returns the greater of two values.
Public methodStatic memberMin(Int32, Int32)
Returns the lesser of two values.
Public methodStatic memberMin(Single, Single)
Returns the lesser of two values.
Public methodStatic memberSmoothStep
Interpolates between two values using a cubic equation.
Public methodStatic memberToDegrees
Converts radians to degrees.
Public methodStatic memberToRadians
Converts degrees to radians.
Public methodStatic memberWrapAngle
Reduces a given angle to a value between π and -π.
Top
Fields
  NameDescription
Public fieldStatic memberE
Represents the mathematical constant e(2.71828175).
Public fieldStatic memberLog10E
Represents the log base ten of e(0.4342945).
Public fieldStatic memberLog2E
Represents the log base two of e(1.442695).
Public fieldStatic memberPi
Represents the value of pi(3.14159274).
Public fieldStatic memberPiOver2
Represents the value of pi divided by two(1.57079637).
Public fieldStatic memberPiOver4
Represents the value of pi divided by four(0.7853982).
Public fieldStatic memberTwoPi
Represents the value of pi times two(6.28318548).
Top
See Also