2013-06-13 19:57:30 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2013-10-15 12:28:36 +02:00
<!-- NewPage -->
< html lang = "nl" >
< head >
<!-- Generated by javadoc (version 1.7.0_40) on Tue Oct 15 12:25:34 CEST 2013 -->
< title > MathHelper< / title >
< meta name = "date" content = "2013-10-15" >
< link rel = "stylesheet" type = "text/css" href = "../../../stylesheet.css" title = "Style" >
< / head >
< body >
< script type = "text/javascript" > < ! - -
2013-06-13 19:57:30 +02:00
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="MathHelper";
}
2013-10-15 12:28:36 +02:00
//-->
< / script >
< noscript >
< div > JavaScript is disabled on your browser.< / div >
< / noscript >
2013-06-13 19:57:30 +02:00
<!-- ========= START OF TOP NAVBAR ======= -->
2013-10-15 12:28:36 +02:00
< div class = "topNav" > < a name = "navbar_top" >
<!-- -->
< / a > < a href = "#skip-navbar_top" title = "Skip navigation links" > < / a > < a name = "navbar_top_firstrow" >
<!-- -->
< / a >
< ul class = "navList" title = "Navigation" >
< li > < a href = "../../../overview-summary.html" > Overview< / a > < / li >
< li > < a href = "package-summary.html" > Package< / a > < / li >
< li class = "navBarCell1Rev" > Class< / li >
< li > < a href = "class-use/MathHelper.html" > Use< / a > < / li >
< li > < a href = "package-tree.html" > Tree< / a > < / li >
< li > < a href = "../../../deprecated-list.html" > Deprecated< / a > < / li >
< li > < a href = "../../../index-files/index-1.html" > Index< / a > < / li >
< li > < a href = "../../../help-doc.html" > Help< / a > < / li >
< / ul >
< / div >
< div class = "subNav" >
< ul class = "navList" >
< li > < a href = "../../../Microsoft/Xna/Framework/DisplayOrientation.html" title = "enum in Microsoft.Xna.Framework" > < span class = "strong" > Prev Class< / span > < / a > < / li >
< li > < a href = "../../../Microsoft/Xna/Framework/Matrix.html" title = "class in Microsoft.Xna.Framework" > < span class = "strong" > Next Class< / span > < / a > < / li >
< / ul >
< ul class = "navList" >
< li > < a href = "../../../index.html?Microsoft/Xna/Framework/MathHelper.html" target = "_top" > Frames< / a > < / li >
< li > < a href = "MathHelper.html" target = "_top" > No Frames< / a > < / li >
< / ul >
< ul class = "navList" id = "allclasses_navbar_top" >
< li > < a href = "../../../allclasses-noframe.html" > All Classes< / a > < / li >
< / ul >
< div >
< script type = "text/javascript" > < ! - -
allClassesLink = document.getElementById("allclasses_navbar_top");
2013-06-13 19:57:30 +02:00
if(window==top) {
2013-10-15 12:28:36 +02:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2013-06-13 19:57:30 +02:00
}
//-->
2013-10-15 12:28:36 +02:00
< / script >
< / div >
< div >
< ul class = "subNavList" >
< li > Summary: < / li >
< li > Nested | < / li >
< li > < a href = "#field_summary" > Field< / a > | < / li >
< li > Constr | < / li >
< li > < a href = "#method_summary" > Method< / a > < / li >
< / ul >
< ul class = "subNavList" >
< li > Detail: < / li >
< li > < a href = "#field_detail" > Field< / a > | < / li >
< li > Constr | < / li >
< li > < a href = "#method_detail" > Method< / a > < / li >
< / ul >
< / div >
< a name = "skip-navbar_top" >
<!-- -->
< / a > < / div >
2013-06-13 19:57:30 +02:00
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
2013-10-15 12:28:36 +02:00
< div class = "header" >
< div class = "subTitle" > Microsoft.Xna.Framework< / div >
< h2 title = "Class MathHelper" class = "title" > Class MathHelper< / h2 >
< / div >
< div class = "contentContainer" >
< ul class = "inheritance" >
< li > java.lang.Object< / li >
< li >
< ul class = "inheritance" >
< li > Microsoft.Xna.Framework.MathHelper< / li >
< / ul >
< / li >
< / ul >
< div class = "description" >
< ul class = "blockList" >
< li class = "blockList" >
< hr >
< br >
< pre > public final class < span class = "strong" > MathHelper< / span >
extends java.lang.Object< / pre >
< div class = "block" > Contains commonly used precalculated values.< / div >
< dl > < dt > < span class = "strong" > Author:< / span > < / dt >
< dd > Halofreak1990< / dd > < / dl >
< / li >
< / ul >
< / div >
< div class = "summary" >
< ul class = "blockList" >
< li class = "blockList" >
2013-06-13 19:57:30 +02:00
<!-- =========== FIELD SUMMARY =========== -->
2013-10-15 12:28:36 +02:00
< ul class = "blockList" >
< li class = "blockList" > < a name = "field_summary" >
<!-- -->
< / a >
< h3 > Field Summary< / h3 >
< table class = "overviewSummary" border = "0" cellpadding = "3" cellspacing = "0" summary = "Field Summary table, listing fields, and an explanation" >
< caption > < span > Fields< / span > < span class = "tabEnd" > < / span > < / caption >
< tr >
< th class = "colFirst" scope = "col" > Modifier and Type< / th >
< th class = "colLast" scope = "col" > Field and Description< / th >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#E" > E< / a > < / strong > < / code >
< div class = "block" > Represents the mathematical constant e.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Log10E" > Log10E< / a > < / strong > < / code >
< div class = "block" > Represents the log base ten of e.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Log2E" > Log2E< / a > < / strong > < / code >
< div class = "block" > Represents the log base two of e.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Pi" > Pi< / a > < / strong > < / code >
< div class = "block" > Represents the value of pi.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#PiOver2" > PiOver2< / a > < / strong > < / code >
< div class = "block" > Represents the value of pi divided by two.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#PiOver4" > PiOver4< / a > < / strong > < / code >
< div class = "block" > Represents the value of pi divided by four.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#TwoPi" > TwoPi< / a > < / strong > < / code >
< div class = "block" > Represents the value of pi times two.< / div >
< / td >
< / tr >
< / table >
< / li >
< / ul >
2013-06-13 19:57:30 +02:00
<!-- ========== METHOD SUMMARY =========== -->
2013-10-15 12:28:36 +02:00
< ul class = "blockList" >
< li class = "blockList" > < a name = "method_summary" >
<!-- -->
< / a >
< h3 > Method Summary< / h3 >
< table class = "overviewSummary" border = "0" cellpadding = "3" cellspacing = "0" summary = "Method Summary table, listing methods, and an explanation" >
< caption > < span > Methods< / span > < span class = "tabEnd" > < / span > < / caption >
< tr >
< th class = "colFirst" scope = "col" > Modifier and Type< / th >
< th class = "colLast" scope = "col" > Method and Description< / th >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Barycentric(float, float, float, float, float)" > Barycentric< / a > < / strong > (float value1,
2013-06-13 19:57:30 +02:00
float value2,
float value3,
2013-10-15 12:28:36 +02:00
float amount1,
float amount2)< / code >
< div class = "block" > Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#CatmullRom(float, float, float, float, float)" > CatmullRom< / a > < / strong > (float value1,
float value2,
float value3,
float value4,
float amount)< / code >
< div class = "block" > Performs a Catmull-Rom interpolation using the specified positions.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Clamp(float, float, float)" > Clamp< / a > < / strong > (float value,
float min,
float max)< / code >
< div class = "block" > Restricts a value to be within a specified range.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Distance(float, float)" > Distance< / a > < / strong > (float value1,
float value2)< / code >
< div class = "block" > Calculates the absolute value of the difference of two values.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Hermite(float, float, float, float, float)" > Hermite< / a > < / strong > (float value1,
float tangent1,
float value2,
float tangent2,
float amount)< / code >
< div class = "block" > Performs a Hermite spline interpolation.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Lerp(float, float, float)" > Lerp< / a > < / strong > (float value1,
float value2,
float amount)< / code >
< div class = "block" > Linearly interpolates between two values.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Max(float, float)" > Max< / a > < / strong > (float value1,
float value2)< / code >
< div class = "block" > Returns the greater of two values.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#Min(float, float)" > Min< / a > < / strong > (float value1,
float value2)< / code >
< div class = "block" > Returns the lesser of two values.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#SmoothStep(float, float, float)" > SmoothStep< / a > < / strong > (float value1,
float value2,
float amount)< / code >
< div class = "block" > Interpolates between two values using a cubic equation.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#ToDegrees(float)" > ToDegrees< / a > < / strong > (float radians)< / code >
< div class = "block" > Converts radians to degrees.< / div >
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#ToRadians(float)" > ToRadians< / a > < / strong > (float degrees)< / code >
< div class = "block" > Converts degrees to radians.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static float< / code > < / td >
< td class = "colLast" > < code > < strong > < a href = "../../../Microsoft/Xna/Framework/MathHelper.html#WrapAngle(float)" > WrapAngle< / a > < / strong > (float angle)< / code >
< div class = "block" > Reduces a given angle to a value between π and -π.< / div >
< / td >
< / tr >
< / table >
< ul class = "blockList" >
< li class = "blockList" > < a name = "methods_inherited_from_class_java.lang.Object" >
<!-- -->
< / a >
< h3 > Methods inherited from class java.lang.Object< / h3 >
< code > clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait< / code > < / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / div >
< div class = "details" >
< ul class = "blockList" >
< li class = "blockList" >
2013-06-13 19:57:30 +02:00
<!-- ============ FIELD DETAIL =========== -->
2013-10-15 12:28:36 +02:00
< ul class = "blockList" >
< li class = "blockList" > < a name = "field_detail" >
<!-- -->
< / a >
< h3 > Field Detail< / h3 >
< a name = "E" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > E< / h4 >
< pre > public static final float E< / pre >
< div class = "block" > Represents the mathematical constant e.< / div >
< dl > < dt > < span class = "strong" > See Also:< / span > < / dt > < dd > < a href = "../../../constant-values.html#Microsoft.Xna.Framework.MathHelper.E" > Constant Field Values< / a > < / dd > < / dl >
< / li >
< / ul >
< a name = "Log10E" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Log10E< / h4 >
< pre > public static final float Log10E< / pre >
< div class = "block" > Represents the log base ten of e.< / div >
< dl > < dt > < span class = "strong" > See Also:< / span > < / dt > < dd > < a href = "../../../constant-values.html#Microsoft.Xna.Framework.MathHelper.Log10E" > Constant Field Values< / a > < / dd > < / dl >
< / li >
< / ul >
< a name = "Log2E" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Log2E< / h4 >
< pre > public static final float Log2E< / pre >
< div class = "block" > Represents the log base two of e.< / div >
< dl > < dt > < span class = "strong" > See Also:< / span > < / dt > < dd > < a href = "../../../constant-values.html#Microsoft.Xna.Framework.MathHelper.Log2E" > Constant Field Values< / a > < / dd > < / dl >
< / li >
< / ul >
< a name = "Pi" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Pi< / h4 >
< pre > public static final float Pi< / pre >
< div class = "block" > Represents the value of pi.< / div >
< dl > < dt > < span class = "strong" > See Also:< / span > < / dt > < dd > < a href = "../../../constant-values.html#Microsoft.Xna.Framework.MathHelper.Pi" > Constant Field Values< / a > < / dd > < / dl >
< / li >
< / ul >
< a name = "PiOver2" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > PiOver2< / h4 >
< pre > public static final float PiOver2< / pre >
< div class = "block" > Represents the value of pi divided by two.< / div >
< dl > < dt > < span class = "strong" > See Also:< / span > < / dt > < dd > < a href = "../../../constant-values.html#Microsoft.Xna.Framework.MathHelper.PiOver2" > Constant Field Values< / a > < / dd > < / dl >
< / li >
< / ul >
< a name = "PiOver4" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > PiOver4< / h4 >
< pre > public static final float PiOver4< / pre >
< div class = "block" > Represents the value of pi divided by four.< / div >
< dl > < dt > < span class = "strong" > See Also:< / span > < / dt > < dd > < a href = "../../../constant-values.html#Microsoft.Xna.Framework.MathHelper.PiOver4" > Constant Field Values< / a > < / dd > < / dl >
< / li >
< / ul >
< a name = "TwoPi" >
<!-- -->
< / a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > TwoPi< / h4 >
< pre > public static final float TwoPi< / pre >
< div class = "block" > Represents the value of pi times two.< / div >
< dl > < dt > < span class = "strong" > See Also:< / span > < / dt > < dd > < a href = "../../../constant-values.html#Microsoft.Xna.Framework.MathHelper.TwoPi" > Constant Field Values< / a > < / dd > < / dl >
< / li >
< / ul >
< / li >
< / ul >
2013-06-13 19:57:30 +02:00
<!-- ============ METHOD DETAIL ========== -->
2013-10-15 12:28:36 +02:00
< ul class = "blockList" >
< li class = "blockList" > < a name = "method_detail" >
<!-- -->
< / a >
< h3 > Method Detail< / h3 >
< a name = "Barycentric(float, float, float, float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Barycentric< / h4 >
< pre > public static float Barycentric(float value1,
float value2,
float value3,
float amount1,
float amount2)< / pre >
< div class = "block" > Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - The coordinate on one axis of vertex 1 of the defining triangle.< / dd > < dd > < code > value2< / code > - The coordinate on the same axis of vertex 2 of the defining triangle.< / dd > < dd > < code > value3< / code > - The coordinate on the same axis of vertex 3 of the defining triangle.< / dd > < dd > < code > amount1< / code > - The normalized barycentric (areal) coordinate b2, equal to the weighting factor for vertex 2, the coordinate of which is specified in value2.< / dd > < dd > < code > amount2< / code > - The normalized barycentric (areal) coordinate b3, equal to the weighting factor for vertex 3, the coordinate of which is specified in value3.< / dd > < / dl >
< / li >
< / ul >
< a name = "CatmullRom(float, float, float, float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > CatmullRom< / h4 >
< pre > public static float CatmullRom(float value1,
float value2,
float value3,
float value4,
float amount)< / pre >
< div class = "block" > Performs a Catmull-Rom interpolation using the specified positions.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - The first position in the interpolation.< / dd > < dd > < code > value2< / code > - The second position in the interpolation.< / dd > < dd > < code > value3< / code > - The third position in the interpolation.< / dd > < dd > < code > value4< / code > - The fourth position in the interpolation.< / dd > < dd > < code > amount< / code > - Weighting factor.< / dd > < / dl >
< / li >
< / ul >
< a name = "Clamp(float, float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Clamp< / h4 >
< pre > public static float Clamp(float value,
float min,
float max)< / pre >
< div class = "block" > Restricts a value to be within a specified range. Reference page contains links to related code samples.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value< / code > - The value to clamp.< / dd > < dd > < code > min< / code > - The minimum value. If value is less than min, min will be returned.< / dd > < dd > < code > max< / code > - The maximum value. If value is greater than max, max will be returned.< / dd > < / dl >
< / li >
< / ul >
< a name = "Distance(float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Distance< / h4 >
< pre > public static float Distance(float value1,
float value2)< / pre >
< div class = "block" > Calculates the absolute value of the difference of two values.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - Source value.< / dd > < dd > < code > value2< / code > - Source value.< / dd > < / dl >
< / li >
< / ul >
< a name = "Hermite(float, float, float, float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Hermite< / h4 >
< pre > public static float Hermite(float value1,
float tangent1,
float value2,
float tangent2,
float amount)< / pre >
< div class = "block" > Performs a Hermite spline interpolation.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - Source position.< / dd > < dd > < code > tangent1< / code > - Source tangent.< / dd > < dd > < code > value2< / code > - Source position.< / dd > < dd > < code > tangent2< / code > - Source tangent.< / dd > < dd > < code > amount< / code > - Weighting factor.< / dd > < / dl >
< / li >
< / ul >
< a name = "Lerp(float, float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Lerp< / h4 >
< pre > public static float Lerp(float value1,
float value2,
float amount)< / pre >
< div class = "block" > Linearly interpolates between two values.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - Source value.< / dd > < dd > < code > value2< / code > - Source value.< / dd > < dd > < code > amount< / code > - Value between 0 and 1 indicating the weight of value2.< / dd > < / dl >
< / li >
< / ul >
< a name = "Max(float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Max< / h4 >
< pre > public static float Max(float value1,
float value2)< / pre >
< div class = "block" > Returns the greater of two values.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - Source value.< / dd > < dd > < code > value2< / code > - Source value.< / dd > < / dl >
< / li >
< / ul >
< a name = "Min(float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > Min< / h4 >
< pre > public static float Min(float value1,
float value2)< / pre >
< div class = "block" > Returns the lesser of two values.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - Source value.< / dd > < dd > < code > value2< / code > - Source value.< / dd > < / dl >
< / li >
< / ul >
< a name = "SmoothStep(float, float, float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > SmoothStep< / h4 >
< pre > public static float SmoothStep(float value1,
float value2,
float amount)< / pre >
< div class = "block" > Interpolates between two values using a cubic equation.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > value1< / code > - Source value.< / dd > < dd > < code > value2< / code > - Source value.< / dd > < dd > < code > amount< / code > - Weighting value.< / dd > < / dl >
< / li >
< / ul >
< a name = "ToDegrees(float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > ToDegrees< / h4 >
< pre > public static float ToDegrees(float radians)< / pre >
< div class = "block" > Converts radians to degrees.< / div >
< / li >
< / ul >
< a name = "ToRadians(float)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > ToRadians< / h4 >
< pre > public static float ToRadians(float degrees)< / pre >
< div class = "block" > Converts degrees to radians.< / div >
< / li >
< / ul >
< a name = "WrapAngle(float)" >
<!-- -->
< / a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > WrapAngle< / h4 >
< pre > public static float WrapAngle(float angle)< / pre >
< div class = "block" > Reduces a given angle to a value between π and -π.< / div >
< dl > < dt > < span class = "strong" > Parameters:< / span > < / dt > < dd > < code > angle< / code > - The angle to reduce, in radians.< / dd > < / dl >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / div >
< / div >
2013-06-13 19:57:30 +02:00
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
2013-10-15 12:28:36 +02:00
< div class = "bottomNav" > < a name = "navbar_bottom" >
<!-- -->
< / a > < a href = "#skip-navbar_bottom" title = "Skip navigation links" > < / a > < a name = "navbar_bottom_firstrow" >
<!-- -->
< / a >
< ul class = "navList" title = "Navigation" >
< li > < a href = "../../../overview-summary.html" > Overview< / a > < / li >
< li > < a href = "package-summary.html" > Package< / a > < / li >
< li class = "navBarCell1Rev" > Class< / li >
< li > < a href = "class-use/MathHelper.html" > Use< / a > < / li >
< li > < a href = "package-tree.html" > Tree< / a > < / li >
< li > < a href = "../../../deprecated-list.html" > Deprecated< / a > < / li >
< li > < a href = "../../../index-files/index-1.html" > Index< / a > < / li >
< li > < a href = "../../../help-doc.html" > Help< / a > < / li >
< / ul >
< / div >
< div class = "subNav" >
< ul class = "navList" >
< li > < a href = "../../../Microsoft/Xna/Framework/DisplayOrientation.html" title = "enum in Microsoft.Xna.Framework" > < span class = "strong" > Prev Class< / span > < / a > < / li >
< li > < a href = "../../../Microsoft/Xna/Framework/Matrix.html" title = "class in Microsoft.Xna.Framework" > < span class = "strong" > Next Class< / span > < / a > < / li >
< / ul >
< ul class = "navList" >
< li > < a href = "../../../index.html?Microsoft/Xna/Framework/MathHelper.html" target = "_top" > Frames< / a > < / li >
< li > < a href = "MathHelper.html" target = "_top" > No Frames< / a > < / li >
< / ul >
< ul class = "navList" id = "allclasses_navbar_bottom" >
< li > < a href = "../../../allclasses-noframe.html" > All Classes< / a > < / li >
< / ul >
< div >
< script type = "text/javascript" > < ! - -
allClassesLink = document.getElementById("allclasses_navbar_bottom");
2013-06-13 19:57:30 +02:00
if(window==top) {
2013-10-15 12:28:36 +02:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2013-06-13 19:57:30 +02:00
}
//-->
2013-10-15 12:28:36 +02:00
< / script >
< / div >
< div >
< ul class = "subNavList" >
< li > Summary: < / li >
< li > Nested | < / li >
< li > < a href = "#field_summary" > Field< / a > | < / li >
< li > Constr | < / li >
< li > < a href = "#method_summary" > Method< / a > < / li >
< / ul >
< ul class = "subNavList" >
< li > Detail: < / li >
< li > < a href = "#field_detail" > Field< / a > | < / li >
< li > Constr | < / li >
< li > < a href = "#method_detail" > Method< / a > < / li >
< / ul >
< / div >
< a name = "skip-navbar_bottom" >
<!-- -->
< / a > < / div >
2013-06-13 19:57:30 +02:00
<!-- ======== END OF BOTTOM NAVBAR ======= -->
2013-10-15 12:28:36 +02:00
< / body >
< / html >