# MathHelper Members

**XNA Game Studio 3.1**

The following tables list the members exposed by the MathHelper type.

Name | Description | |
---|---|---|

E | Represents the mathematical constant e. | |

Log10E | Represents the log base ten of e. | |

Log2E | Represents the log base two of e. | |

Pi | Represents the value of pi. | |

PiOver2 | Represents the value of pi divided by two. | |

PiOver4 | Represents the value of pi divided by four. | |

TwoPi | Represents the value of pi times two. |

Name | Description | |
---|---|---|

Barycentric | Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates. | |

CatmullRom | Performs a Catmull-Rom interpolation using the specified positions. | |

Clamp | Restricts a value to be within a specified range. | |

Distance | Calculates the absolute value of the difference of two values. | |

Equals | (Inherited from Object.) | |

GetHashCode | (Inherited from Object.) | |

GetType | (Inherited from Object.) | |

Hermite | Performs a Hermite spline interpolation. | |

Lerp | Linearly interpolates between two values. | |

Max | Returns the greater of two values. | |

Min | Returns the lesser of two values. | |

ReferenceEquals | (Inherited from Object.) | |

SmoothStep | Interpolates between two values using a cubic equation. | |

ToDegrees | Converts radians to degrees. | |

ToRadians | Converts degrees to radians. | |

ToString | (Inherited from Object.) | |

WrapAngle | Reduces a given angle to a value between π and -π. |

Name | Description | |
---|---|---|

Finalize | (Inherited from Object.) | |

MemberwiseClone | (Inherited from Object.) |

## Community Additions

ADD
Show: