qd-changjing/public/static/Build/Documentation/Math.html

8362 lines
148 KiB
HTML
Raw Normal View History

2022-07-05 16:56:29 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Math - Cesium Documentation</title>
<!--[if lt IE 9]>
<script src="javascript/html5.js"></script>
<![endif]-->
<link href="styles/jsdoc-default.css" rel="stylesheet">
<link href="styles/prism.css" rel="stylesheet">
</head>
<body>
<div id="main">
<h1 class="page-title">
<a href="index.html"><img src="Images/CesiumLogo.png" class="cesiumLogo"></a>
Math
<div class="titleCenterer"></div>
</h1>
<section>
<header>
</header>
<article>
<div class="container-overview">
<div class="nameContainer">
<h4 class="name" id="Math">
<a href="#Math" class="doc-link"></a>
Math<span class="signature">()</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L13">Core/Math.js 13</a>
</div>
</h4>
</div>
<div class="description">
Math functions.
</div>
<dl class="details">
</dl>
</div>
<h3 class="subsection-title">Members</h3>
<div class="nameContainer">
<h4 class="name" id=".DEGREES_PER_RADIAN">
<a href="#.DEGREES_PER_RADIAN" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.DEGREES_PER_RADIAN<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L426">Core/Math.js 426</a>
</div>
</h4>
</div>
<div class="description">
The number of degrees in a radian.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON1">
<a href="#.EPSILON1" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON1<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L20">Core/Math.js 20</a>
</div>
</h4>
</div>
<div class="description">
0.1
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON2">
<a href="#.EPSILON2" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON2<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L27">Core/Math.js 27</a>
</div>
</h4>
</div>
<div class="description">
0.01
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON3">
<a href="#.EPSILON3" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON3<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L34">Core/Math.js 34</a>
</div>
</h4>
</div>
<div class="description">
0.001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON4">
<a href="#.EPSILON4" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON4<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L41">Core/Math.js 41</a>
</div>
</h4>
</div>
<div class="description">
0.0001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON5">
<a href="#.EPSILON5" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON5<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L48">Core/Math.js 48</a>
</div>
</h4>
</div>
<div class="description">
0.00001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON6">
<a href="#.EPSILON6" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON6<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L55">Core/Math.js 55</a>
</div>
</h4>
</div>
<div class="description">
0.000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON7">
<a href="#.EPSILON7" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON7<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L62">Core/Math.js 62</a>
</div>
</h4>
</div>
<div class="description">
0.0000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON8">
<a href="#.EPSILON8" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON8<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L69">Core/Math.js 69</a>
</div>
</h4>
</div>
<div class="description">
0.00000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON9">
<a href="#.EPSILON9" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON9<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L76">Core/Math.js 76</a>
</div>
</h4>
</div>
<div class="description">
0.000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON10">
<a href="#.EPSILON10" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON10<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L83">Core/Math.js 83</a>
</div>
</h4>
</div>
<div class="description">
0.0000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON11">
<a href="#.EPSILON11" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON11<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L90">Core/Math.js 90</a>
</div>
</h4>
</div>
<div class="description">
0.00000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON12">
<a href="#.EPSILON12" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON12<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L97">Core/Math.js 97</a>
</div>
</h4>
</div>
<div class="description">
0.000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON13">
<a href="#.EPSILON13" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON13<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L104">Core/Math.js 104</a>
</div>
</h4>
</div>
<div class="description">
0.0000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON14">
<a href="#.EPSILON14" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON14<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L111">Core/Math.js 111</a>
</div>
</h4>
</div>
<div class="description">
0.00000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON15">
<a href="#.EPSILON15" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON15<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L118">Core/Math.js 118</a>
</div>
</h4>
</div>
<div class="description">
0.000000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON16">
<a href="#.EPSILON16" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON16<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L125">Core/Math.js 125</a>
</div>
</h4>
</div>
<div class="description">
0.0000000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON17">
<a href="#.EPSILON17" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON17<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L132">Core/Math.js 132</a>
</div>
</h4>
</div>
<div class="description">
0.00000000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON18">
<a href="#.EPSILON18" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON18<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L139">Core/Math.js 139</a>
</div>
</h4>
</div>
<div class="description">
0.000000000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON19">
<a href="#.EPSILON19" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON19<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L146">Core/Math.js 146</a>
</div>
</h4>
</div>
<div class="description">
0.0000000000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON20">
<a href="#.EPSILON20" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON20<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L153">Core/Math.js 153</a>
</div>
</h4>
</div>
<div class="description">
0.00000000000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".EPSILON21">
<a href="#.EPSILON21" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.EPSILON21<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L160">Core/Math.js 160</a>
</div>
</h4>
</div>
<div class="description">
0.000000000000000000001
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".FOUR_GIGABYTES">
<a href="#.FOUR_GIGABYTES" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.FOUR_GIGABYTES<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L198">Core/Math.js 198</a>
</div>
</h4>
</div>
<div class="description">
4 * 1024 * 1024 * 1024
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".GRAVITATIONALPARAMETER">
<a href="#.GRAVITATIONALPARAMETER" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.GRAVITATIONALPARAMETER<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L168">Core/Math.js 168</a>
</div>
</h4>
</div>
<div class="description">
The gravitational parameter of the Earth in meters cubed
per second squared as defined by the WGS84 model: 3.986004418e14
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".LUNAR_RADIUS">
<a href="#.LUNAR_RADIUS" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.LUNAR_RADIUS<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L184">Core/Math.js 184</a>
</div>
</h4>
</div>
<div class="description">
The mean radius of the moon, according to the "Report of the IAU/IAG Working Group on
Cartographic Coordinates and Rotational Elements of the Planets and satellites: 2000",
Celestial Mechanics 82: 83-110, 2002.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".ONE_OVER_PI">
<a href="#.ONE_OVER_PI" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.ONE_OVER_PI<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L354">Core/Math.js 354</a>
</div>
</h4>
</div>
<div class="description">
1/pi
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".ONE_OVER_TWO_PI">
<a href="#.ONE_OVER_TWO_PI" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.ONE_OVER_TWO_PI<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L410">Core/Math.js 410</a>
</div>
</h4>
</div>
<div class="description">
1/2pi
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".PI">
<a href="#.PI" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.PI<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L346">Core/Math.js 346</a>
</div>
</h4>
</div>
<div class="description">
pi
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".PI_OVER_FOUR">
<a href="#.PI_OVER_FOUR" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.PI_OVER_FOUR<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L378">Core/Math.js 378</a>
</div>
</h4>
</div>
<div class="description">
pi/4
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".PI_OVER_SIX">
<a href="#.PI_OVER_SIX" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.PI_OVER_SIX<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L386">Core/Math.js 386</a>
</div>
</h4>
</div>
<div class="description">
pi/6
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".PI_OVER_THREE">
<a href="#.PI_OVER_THREE" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.PI_OVER_THREE<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L370">Core/Math.js 370</a>
</div>
</h4>
</div>
<div class="description">
pi/3
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".PI_OVER_TWO">
<a href="#.PI_OVER_TWO" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.PI_OVER_TWO<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L362">Core/Math.js 362</a>
</div>
</h4>
</div>
<div class="description">
pi/2
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".RADIANS_PER_ARCSECOND">
<a href="#.RADIANS_PER_ARCSECOND" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.RADIANS_PER_ARCSECOND<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L434">Core/Math.js 434</a>
</div>
</h4>
</div>
<div class="description">
The number of radians in an arc second.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".RADIANS_PER_DEGREE">
<a href="#.RADIANS_PER_DEGREE" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.RADIANS_PER_DEGREE<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L418">Core/Math.js 418</a>
</div>
</h4>
</div>
<div class="description">
The number of radians in a degree.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".SIXTY_FOUR_KILOBYTES">
<a href="#.SIXTY_FOUR_KILOBYTES" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.SIXTY_FOUR_KILOBYTES<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L191">Core/Math.js 191</a>
</div>
</h4>
</div>
<div class="description">
64 * 1024
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".SOLAR_RADIUS">
<a href="#.SOLAR_RADIUS" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.SOLAR_RADIUS<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L175">Core/Math.js 175</a>
</div>
</h4>
</div>
<div class="description">
Radius of the sun in meters: 6.955e8
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".THREE_PI_OVER_TWO">
<a href="#.THREE_PI_OVER_TWO" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.THREE_PI_OVER_TWO<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L394">Core/Math.js 394</a>
</div>
</h4>
</div>
<div class="description">
3pi/2
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".TWO_PI">
<a href="#.TWO_PI" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> <span class="type-signature attribute-constant">constant</span> Cesium.Math.TWO_PI<span class="type-signature"> : Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L402">Core/Math.js 402</a>
</div>
</h4>
</div>
<div class="description">
2pi
</div>
<dl class="details">
</dl>
<h3 class="subsection-title">Methods</h3>
<div class="nameContainer">
<h4 class="name" id=".acosClamped">
<a href="#.acosClamped" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.acosClamped<span class="signature">(value)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L970">Core/Math.js 970</a>
</div>
</h4>
</div>
<div class="description">
Computes <code>Math.acos(value)</code>, but first clamps <code>value</code> to the range [-1.0, 1.0]
so that the function will never return NaN.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The value for which to compute acos.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The acos of the value if the value is in the range [-1.0, 1.0], or the acos of -1.0 or 1.0,
whichever is closer, if the value is outside the range.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".asinClamped">
<a href="#.asinClamped" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.asinClamped<span class="signature">(value)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L987">Core/Math.js 987</a>
</div>
</h4>
</div>
<div class="description">
Computes <code>Math.asin(value)</code>, but first clamps <code>value</code> to the range [-1.0, 1.0]
so that the function will never return NaN.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The value for which to compute asin.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The asin of the value if the value is in the range [-1.0, 1.0], or the asin of -1.0 or 1.0,
whichever is closer, if the value is outside the range.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".cbrt">
<a href="#.cbrt" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.cbrt<span class="signature">(<span class="optional">number</span>)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L1043">Core/Math.js 1043</a>
</div>
</h4>
</div>
<div class="description">
Finds the cube root of a number.
Returns NaN if <code>number</code> is not provided.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>number</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
<span class="optional">optional</span>
The number.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The result.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".chordLength">
<a href="#.chordLength" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.chordLength<span class="signature">(angle, radius)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L1003">Core/Math.js 1003</a>
</div>
</h4>
</div>
<div class="description">
Finds the chord length between two points given the circle's radius and the angle between the points.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>angle</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The angle between the two points.</td>
</tr>
<tr>
<td class="name"><code>radius</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The radius of the circle.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The chord length.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".clamp">
<a href="#.clamp" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.clamp<span class="signature">(value, min, max)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L905">Core/Math.js 905</a>
</div>
</h4>
</div>
<div class="description">
Constraint a value to lie between two values.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The value to constrain.</td>
</tr>
<tr>
<td class="name"><code>min</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The minimum value.</td>
</tr>
<tr>
<td class="name"><code>max</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The maximum value.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The value clamped so that min <= value <= max.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".clampToLatitudeRange">
<a href="#.clampToLatitudeRange" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.clampToLatitudeRange<span class="signature">(angle)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L505">Core/Math.js 505</a>
</div>
</h4>
</div>
<div class="description">
Convenience function that clamps a latitude value, in radians, to the range [<code>-Math.PI/2</code>, <code>Math.PI/2</code>).
Useful for sanitizing data before use in objects requiring correct range.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>angle</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The latitude value, in radians, to clamp to the range [<code>-Math.PI/2</code>, <code>Math.PI/2</code>).</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The latitude value clamped to the range [<code>-Math.PI/2</code>, <code>Math.PI/2</code>).
</div>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">// Clamp 108 degrees latitude to 90 degrees latitude
const latitude = Cesium.Math.clampToLatitudeRange(Cesium.Math.toRadians(108.0));</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".convertLongitudeRange">
<a href="#.convertLongitudeRange" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.convertLongitudeRange<span class="signature">(angle)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L474">Core/Math.js 474</a>
</div>
</h4>
</div>
<div class="description">
Converts a longitude value, in radians, to the range [<code>-Math.PI</code>, <code>Math.PI</code>).
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>angle</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The longitude value, in radians, to convert to the range [<code>-Math.PI</code>, <code>Math.PI</code>).</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The equivalent longitude value in the range [<code>-Math.PI</code>, <code>Math.PI</code>).
</div>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">// Convert 270 degrees to -90 degrees longitude
const longitude = Cesium.Math.convertLongitudeRange(Cesium.Math.toRadians(270.0));</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".cosh">
<a href="#.cosh" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.cosh<span class="signature">(value)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L321">Core/Math.js 321</a>
</div>
</h4>
</div>
<div class="description">
Returns the hyperbolic cosine of a number.
The hyperbolic cosine of <strong>value</strong> is defined to be
(<em>e<sup>x</sup>&nbsp;+&nbsp;e<sup>-x</sup></em>)/2.0
where <i>e</i> is Euler's number, approximately 2.71828183.
<p>Special cases:
<ul>
<li>If the argument is NaN, then the result is NaN.</li>
<li>If the argument is infinite, then the result is positive infinity.</li>
<li>If the argument is zero, then the result is 1.0.</li>
</ul>
</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The number whose hyperbolic cosine is to be returned.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The hyperbolic cosine of <code>value</code>.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".equalsEpsilon">
<a href="#.equalsEpsilon" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.equalsEpsilon<span class="signature">(left, right, <span class="optional">relativeEpsilon</span>, <span class="optional">absoluteEpsilon</span>)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L612">Core/Math.js 612</a>
</div>
</h4>
</div>
<div class="description">
Determines if two values are equal using an absolute or relative tolerance test. This is useful
to avoid problems due to roundoff error when comparing floating-point values directly. The values are
first compared using an absolute tolerance test. If that fails, a relative tolerance test is performed.
Use this test if you are unsure of the magnitudes of left and right.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last">
The first value to compare.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last">
The other value to compare.</td>
</tr>
<tr>
<td class="name"><code>relativeEpsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
<code class="language-javascript">0</code>
</td>
<td class="description last">
<span class="optional">optional</span>
The maximum inclusive delta between <code>left</code> and <code>right</code> for the relative tolerance test.</td>
</tr>
<tr>
<td class="name"><code>absoluteEpsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
<code class="language-javascript">relativeEpsilon</code>
</td>
<td class="description last">
<span class="optional">optional</span>
The maximum inclusive delta between <code>left</code> and <code>right</code> for the absolute tolerance test.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if the values are equal within the epsilon; otherwise, <code>false</code>.
</div>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">const a = Cesium.Math.equalsEpsilon(0.0, 0.01, Cesium.Math.EPSILON2); // true
const b = Cesium.Math.equalsEpsilon(0.0, 0.1, Cesium.Math.EPSILON2); // false
const c = Cesium.Math.equalsEpsilon(3699175.1634344, 3699175.2, Cesium.Math.EPSILON7); // true
const d = Cesium.Math.equalsEpsilon(3699175.1634344, 3699175.2, Cesium.Math.EPSILON9); // false</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".factorial">
<a href="#.factorial" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.factorial<span class="signature">(n)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L755">Core/Math.js 755</a>
</div>
</h4>
</div>
<div class="description">
Computes the factorial of the provided number.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>n</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The number whose factorial is to be computed.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The factorial of the provided number or undefined if the number is less than 0.
</div>
<h5>Throws:</h5>
<ul>
<li>
<div class="param-desc">
<span class="param-type"><a href="DeveloperError.html">DeveloperError</a></span>
: A number greater than or equal to 0 is required.
</div>
</li>
</ul>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">//Compute 7!, which is equal to 5040
const computedFactorial = Cesium.Math.factorial(7);</code></pre>
<h5>See:</h5>
<ul class="see-list">
<li><a href="http://en.wikipedia.org/wiki/Factorial">Factorial on Wikipedia</a></li>
</ul>
</dl>
<div class="nameContainer">
<h4 class="name" id=".fastApproximateAtan">
<a href="#.fastApproximateAtan" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.fastApproximateAtan<span class="signature">(x)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L1079">Core/Math.js 1079</a>
</div>
</h4>
</div>
<div class="description">
Computes a fast approximation of Atan for input in the range [-1, 1].
Based on Michal Drobot's approximation from ShaderFastLibs,
which in turn is based on "Efficient approximations for the arctangent function,"
Rajan, S. Sichun Wang Inkol, R. Joyal, A., May 2006.
Adapted from ShaderFastLibs under MIT License.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
An input number in the range [-1, 1]</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
An approximation of atan(x)
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".fastApproximateAtan2">
<a href="#.fastApproximateAtan2" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.fastApproximateAtan2<span class="signature">(x, y)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L1096">Core/Math.js 1096</a>
</div>
</h4>
</div>
<div class="description">
Computes a fast approximation of Atan2(x, y) for arbitrary input scalars.
Range reduction math based on nvidia's cg reference implementation: http://developer.download.nvidia.com/cg/atan2.html
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
An input number that isn't zero if y is zero.</td>
</tr>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
An input number that isn't zero if x is zero.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
An approximation of atan2(x, y)
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".fromSNorm">
<a href="#.fromSNorm" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.fromSNorm<span class="signature">(value, <span class="optional">rangeMaximum</span>)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L252">Core/Math.js 252</a>
</div>
</h4>
</div>
<div class="description">
Converts a SNORM value in the range [0, rangeMaximum] to a scalar in the range [-1.0, 1.0].
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last">
SNORM value in the range [0, rangeMaximum]</td>
</tr>
<tr>
<td class="name"><code>rangeMaximum</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
<code class="language-javascript">255</code>
</td>
<td class="description last">
<span class="optional">optional</span>
The maximum value in the SNORM range, 255 by default.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
Scalar in the range [-1.0, 1.0].
</div>
<dl class="details">
<h5>See:</h5>
<ul class="see-list">
<li>CesiumMath.toSNorm</li>
</ul>
</dl>
<div class="nameContainer">
<h4 class="name" id=".greaterThan">
<a href="#.greaterThan" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.greaterThan<span class="signature">(left, right, absoluteEpsilon)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L698">Core/Math.js 698</a>
</div>
</h4>
</div>
<div class="description">
Determines if the left value is greater the right value. If the two values are within
<code>absoluteEpsilon</code> of each other, they are considered equal and this function returns false.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The first number to compare.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The second number to compare.</td>
</tr>
<tr>
<td class="name"><code>absoluteEpsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The absolute epsilon to use in comparison.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if <code>left</code> is greater than <code>right</code> by more than
<code>absoluteEpsilon<code>. <code>false</code> if <code>left</code> is less or if the two
values are nearly equal.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".greaterThanOrEquals">
<a href="#.greaterThanOrEquals" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.greaterThanOrEquals<span class="signature">(left, right, absoluteEpsilon)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L723">Core/Math.js 723</a>
</div>
</h4>
</div>
<div class="description">
Determines if the left value is greater than or equal to the right value. If the two values are within
<code>absoluteEpsilon</code> of each other, they are considered equal and this function returns true.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The first number to compare.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The second number to compare.</td>
</tr>
<tr>
<td class="name"><code>absoluteEpsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The absolute epsilon to use in comparison.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if <code>left</code> is greater than <code>right</code> or if the
the values are nearly equal.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".incrementWrap">
<a href="#.incrementWrap" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.incrementWrap<span class="signature">(<span class="optional">n</span>, <span class="optional">maximumValue</span>, <span class="optional">minimumValue</span>)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L790">Core/Math.js 790</a>
</div>
</h4>
</div>
<div class="description">
Increments a number with a wrapping to a minimum value if the number exceeds the maximum value.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>n</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional">optional</span>
The number to be incremented.</td>
</tr>
<tr>
<td class="name"><code>maximumValue</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional">optional</span>
The maximum incremented value before rolling over to the minimum value.</td>
</tr>
<tr>
<td class="name"><code>minimumValue</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
<code class="language-javascript">0.0</code>
</td>
<td class="description last">
<span class="optional">optional</span>
The number reset to after the maximum value has been exceeded.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The incremented number.
</div>
<h5>Throws:</h5>
<ul>
<li>
<div class="param-desc">
<span class="param-type"><a href="DeveloperError.html">DeveloperError</a></span>
: Maximum value must be greater than minimum value.
</div>
</li>
</ul>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">const n = Cesium.Math.incrementWrap(5, 10, 0); // returns 6
const m = Cesium.Math.incrementWrap(10, 10, 0); // returns 0</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".isPowerOfTwo">
<a href="#.isPowerOfTwo" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.isPowerOfTwo<span class="signature">(n)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L822">Core/Math.js 822</a>
</div>
</h4>
</div>
<div class="description">
Determines if a non-negative integer is a power of two.
The maximum allowed input is (2^32)-1 due to 32-bit bitwise operator limitation in Javascript.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>n</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The integer to test in the range [0, (2^32)-1].</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if the number if a power of two; otherwise, <code>false</code>.
</div>
<h5>Throws:</h5>
<ul>
<li>
<div class="param-desc">
<span class="param-type"><a href="DeveloperError.html">DeveloperError</a></span>
: A number between 0 and (2^32)-1 is required.
</div>
</li>
</ul>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">const t = Cesium.Math.isPowerOfTwo(16); // true
const f = Cesium.Math.isPowerOfTwo(20); // false</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".lerp">
<a href="#.lerp" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.lerp<span class="signature">(p, q, time)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L336">Core/Math.js 336</a>
</div>
</h4>
</div>
<div class="description">
Computes the linear interpolation of two values.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>p</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The start value to interpolate.</td>
</tr>
<tr>
<td class="name"><code>q</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The end value to interpolate.</td>
</tr>
<tr>
<td class="name"><code>time</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The time of interpolation generally in the range <code>[0.0, 1.0]</code>.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The linearly interpolated value.
</div>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">const n = Cesium.Math.lerp(0.0, 2.0, 0.5); // returns 1.0</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".lessThan">
<a href="#.lessThan" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.lessThan<span class="signature">(left, right, absoluteEpsilon)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L647">Core/Math.js 647</a>
</div>
</h4>
</div>
<div class="description">
Determines if the left value is less than the right value. If the two values are within
<code>absoluteEpsilon</code> of each other, they are considered equal and this function returns false.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The first number to compare.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The second number to compare.</td>
</tr>
<tr>
<td class="name"><code>absoluteEpsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The absolute epsilon to use in comparison.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if <code>left</code> is less than <code>right</code> by more than
<code>absoluteEpsilon<code>. <code>false</code> if <code>left</code> is greater or if the two
values are nearly equal.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".lessThanOrEquals">
<a href="#.lessThanOrEquals" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.lessThanOrEquals<span class="signature">(left, right, absoluteEpsilon)</span> &rarr; <span class="type-signature returnType">Boolean</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L672">Core/Math.js 672</a>
</div>
</h4>
</div>
<div class="description">
Determines if the left value is less than or equal to the right value. If the two values are within
<code>absoluteEpsilon</code> of each other, they are considered equal and this function returns true.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>left</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The first number to compare.</td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The second number to compare.</td>
</tr>
<tr>
<td class="name"><code>absoluteEpsilon</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The absolute epsilon to use in comparison.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
<code>true</code> if <code>left</code> is less than <code>right</code> or if the
the values are nearly equal.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".log2">
<a href="#.log2" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.log2<span class="signature">(number)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L1056">Core/Math.js 1056</a>
</div>
</h4>
</div>
<div class="description">
Finds the base 2 logarithm of a number.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>number</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The number.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The result.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".logBase">
<a href="#.logBase" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.logBase<span class="signature">(number, base)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L1022">Core/Math.js 1022</a>
</div>
</h4>
</div>
<div class="description">
Finds the logarithm of a number to a base.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>number</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The number.</td>
</tr>
<tr>
<td class="name"><code>base</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The base.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The result.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".mod">
<a href="#.mod" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.mod<span class="signature">(m, n)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L573">Core/Math.js 573</a>
</div>
</h4>
</div>
<div class="description">
The modulo operation that also works for negative dividends.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>m</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The dividend.</td>
</tr>
<tr>
<td class="name"><code>n</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The divisor.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The remainder.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".negativePiToPi">
<a href="#.negativePiToPi" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.negativePiToPi<span class="signature">(angle)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L525">Core/Math.js 525</a>
</div>
</h4>
</div>
<div class="description">
Produces an angle in the range -Pi <= angle <= Pi which is equivalent to the provided angle.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>angle</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
in radians</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The angle in the range [<code>-CesiumMath.PI</code>, <code>CesiumMath.PI</code>].
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".nextPowerOfTwo">
<a href="#.nextPowerOfTwo" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.nextPowerOfTwo<span class="signature">(n)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L845">Core/Math.js 845</a>
</div>
</h4>
</div>
<div class="description">
Computes the next power-of-two integer greater than or equal to the provided non-negative integer.
The maximum allowed input is 2^31 due to 32-bit bitwise operator limitation in Javascript.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>n</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The integer to test in the range [0, 2^31].</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The next power-of-two integer.
</div>
<h5>Throws:</h5>
<ul>
<li>
<div class="param-desc">
<span class="param-type"><a href="DeveloperError.html">DeveloperError</a></span>
: A number between 0 and 2^31 is required.
</div>
</li>
</ul>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">const n = Cesium.Math.nextPowerOfTwo(29); // 32
const m = Cesium.Math.nextPowerOfTwo(32); // 32</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".nextRandomNumber">
<a href="#.nextRandomNumber" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.nextRandomNumber<span class="signature">()</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L947">Core/Math.js 947</a>
</div>
</h4>
</div>
<div class="description">
Generates a random floating point number in the range of [0.0, 1.0)
using a Mersenne twister.
</div>
<h5>Returns:</h5>
<div class="param-desc">
A random number in the range of [0.0, 1.0).
</div>
<dl class="details">
<h5>See:</h5>
<ul class="see-list">
<li>CesiumMath.setRandomNumberSeed</li>
<li><a href="http://en.wikipedia.org/wiki/Mersenne_twister">Mersenne twister on Wikipedia</a></li>
</ul>
</dl>
<div class="nameContainer">
<h4 class="name" id=".normalize">
<a href="#.normalize" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.normalize<span class="signature">(value, rangeMinimum, rangeMaximum)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L266">Core/Math.js 266</a>
</div>
</h4>
</div>
<div class="description">
Converts a scalar value in the range [rangeMinimum, rangeMaximum] to a scalar in the range [0.0, 1.0]
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The scalar value in the range [rangeMinimum, rangeMaximum]</td>
</tr>
<tr>
<td class="name"><code>rangeMinimum</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The minimum value in the mapped range.</td>
</tr>
<tr>
<td class="name"><code>rangeMaximum</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The maximum value in the mapped range.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
A scalar value, where rangeMinimum maps to 0.0 and rangeMaximum maps to 1.0.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".previousPowerOfTwo">
<a href="#.previousPowerOfTwo" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.previousPowerOfTwo<span class="signature">(n)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L877">Core/Math.js 877</a>
</div>
</h4>
</div>
<div class="description">
Computes the previous power-of-two integer less than or equal to the provided non-negative integer.
The maximum allowed input is (2^32)-1 due to 32-bit bitwise operator limitation in Javascript.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>n</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The integer to test in the range [0, (2^32)-1].</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The previous power-of-two integer.
</div>
<h5>Throws:</h5>
<ul>
<li>
<div class="param-desc">
<span class="param-type"><a href="DeveloperError.html">DeveloperError</a></span>
: A number between 0 and (2^32)-1 is required.
</div>
</li>
</ul>
<dl class="details">
<h5>Example:</h5>
<pre><code class="language-javascript">const n = Cesium.Math.previousPowerOfTwo(29); // 16
const m = Cesium.Math.previousPowerOfTwo(32); // 32</code></pre>
</dl>
<div class="nameContainer">
<h4 class="name" id=".randomBetween">
<a href="#.randomBetween" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.randomBetween<span class="signature">(min, max)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L958">Core/Math.js 958</a>
</div>
</h4>
</div>
<div class="description">
Generates a random number between two numbers.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>min</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The minimum value.</td>
</tr>
<tr>
<td class="name"><code>max</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The maximum value.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
A random number between the min and max.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".setRandomNumberSeed">
<a href="#.setRandomNumberSeed" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.setRandomNumberSeed<span class="signature">(seed)</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L928">Core/Math.js 928</a>
</div>
</h4>
</div>
<div class="description">
Sets the seed used by the random number generator
in <code>CesiumMath#nextRandomNumber</code>.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>seed</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
An integer used as the seed.</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".sign">
<a href="#.sign" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.sign<span class="signature">(value)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L209">Core/Math.js 209</a>
</div>
</h4>
</div>
<div class="description">
Returns the sign of the value; 1 if the value is positive, -1 if the value is
negative, or 0 if the value is 0.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The value to return the sign of.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The sign of value.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".signNotZero">
<a href="#.signNotZero" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.signNotZero<span class="signature">(value)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L225">Core/Math.js 225</a>
</div>
</h4>
</div>
<div class="description">
Returns 1.0 if the given value is positive or zero, and -1.0 if it is negative.
This is similar to <code>CesiumMath#sign</code> except that returns 1.0 instead of
0.0 when the input value is 0.0.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The value to return the sign of.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The sign of value.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".sinh">
<a href="#.sinh" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.sinh<span class="signature">(value)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L296">Core/Math.js 296</a>
</div>
</h4>
</div>
<div class="description">
Returns the hyperbolic sine of a number.
The hyperbolic sine of <em>value</em> is defined to be
(<em>e<sup>x</sup>&nbsp;-&nbsp;e<sup>-x</sup></em>)/2.0
where <i>e</i> is Euler's number, approximately 2.71828183.
<p>Special cases:
<ul>
<li>If the argument is NaN, then the result is NaN.</li>
<li>If the argument is infinite, then the result is an infinity
with the same sign as the argument.</li>
<li>If the argument is zero, then the result is a zero with the
same sign as the argument.</li>
</ul>
</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The number whose hyperbolic sine is to be returned.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The hyperbolic sine of <code>value</code>.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".toDegrees">
<a href="#.toDegrees" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.toDegrees<span class="signature">(radians)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L455">Core/Math.js 455</a>
</div>
</h4>
</div>
<div class="description">
Converts radians to degrees.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>radians</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The angle to convert in radians.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The corresponding angle in degrees.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".toRadians">
<a href="#.toRadians" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.toRadians<span class="signature">(degrees)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L441">Core/Math.js 441</a>
</div>
</h4>
</div>
<div class="description">
Converts degrees to radians.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>degrees</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
The angle to convert in degrees.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The corresponding angle in radians.
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id=".toSNorm">
<a href="#.toSNorm" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.toSNorm<span class="signature">(value, <span class="optional">rangeMaximum</span>)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L237">Core/Math.js 237</a>
</div>
</h4>
</div>
<div class="description">
Converts a scalar value in the range [-1.0, 1.0] to a SNORM in the range [0, rangeMaximum]
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last">
The scalar value in the range [-1.0, 1.0]</td>
</tr>
<tr>
<td class="name"><code>rangeMaximum</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
<code class="language-javascript">255</code>
</td>
<td class="description last">
<span class="optional">optional</span>
The maximum value in the mapped range, 255 by default.</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
A SNORM value, where 0 maps to -1.0 and rangeMaximum maps to 1.0.
</div>
<dl class="details">
<h5>See:</h5>
<ul class="see-list">
<li>CesiumMath.fromSNorm</li>
</ul>
</dl>
<div class="nameContainer">
<h4 class="name" id=".zeroToTwoPi">
<a href="#.zeroToTwoPi" class="doc-link"></a>
<span class="type-signature attribute-static">static</span> Cesium.Math.zeroToTwoPi<span class="signature">(angle)</span> &rarr; <span class="type-signature returnType">Number</span>
<div class="source-link rightLinks">
<a href="https://github.com/CesiumGS/cesium/blob/1.91/Source/Core/Math.js#L545">Core/Math.js 545</a>
</div>
</h4>
</div>
<div class="description">
Produces an angle in the range 0 <= angle <= 2Pi which is equivalent to the provided angle.
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>angle</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
in radians</td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="param-desc">
The angle in the range [0, <code>CesiumMath.TWO_PI</code>].
</div>
<dl class="details">
</dl>
</article>
</section>
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a>
</footer>
</div>
<div class="nav">
<div class="menu">
<input type="text" class="classFilter" id="ClassFilter" placeholder="Search">
<ul id="ClassList"><li data-name="Animation"><a href="Animation.html">Animation</a></li><li data-name="AnimationViewModel"><a href="AnimationViewModel.html">AnimationViewModel</a></li><li data-name="Appearance"><a href="Appearance.html">Appearance</a></li><li data-name="ArcGisMapServerImageryProvider"><a href="ArcGisMapServerImageryProvider.html">ArcGisMapServerImageryProvider</a></li><li data-name="ArcGISTiledElevationTerrainProvider"><a href="ArcGISTiledElevationTerrainProvider.html">ArcGISTiledElevationTerrainProvider</a></li><li data-name="ArcType"><a href="global.html#ArcType">ArcType</a></li><li data-name="AssociativeArray"><a href="AssociativeArray.html">AssociativeArray</a></li><li data-name="Axis"><a href="global.html#Axis">Axis</a></li><li data-name="AxisAlignedBoundingBox"><a href="AxisAlignedBoundingBox.html">AxisAlignedBoundingBox</a></li><li data-name="backFaceCulling"><a href="global.html#backFaceCulling">backFaceCulling</a></li><li data-name="barycentricCoordinates"><a href="global.html#barycentricCoordinates">barycentricCoordinates</a></li><li data-name="BaseLayerPicker"><a href="BaseLayerPicker.html">BaseLayerPicker</a></li><li data-name="BaseLayerPickerViewModel"><a href="BaseLayerPickerViewModel.html">BaseLayerPickerViewModel</a></li><li data-name="Billboard"><a href="Billboard.html">Billboard</a></li><li data-name="BillboardCollection"><a href="BillboardCollection.html">BillboardCollection</a></li><li data-name="BillboardGraphics"><a href="BillboardGraphics.html">BillboardGraphics</a></li><li data-name="BillboardVisualizer"><a href="BillboardVisualizer.html">BillboardVisualizer</a></li><li data-name="binarySearch"><a href="global.html#binarySearch">binarySearch</a></li><li data-name="binarySearchComparator"><a href="global.html#binarySearchComparator">binarySearchComparator</a></li><li data-name="BingMapsGeocoderService"><a href="BingMapsGeocoderService.html">BingMapsGeocoderService</a></li><li data-name="BingMapsImageryProvider"><a href="BingMapsImageryProvider.html">BingMapsImageryProvider</a></li><li data-name="BingMapsStyle"><a href="global.html#BingMapsStyle">BingMapsStyle</a></li><li data-name="BlendEquation"><a href="global.html#BlendEquation">BlendEquation</a></li><li data-name="BlendFunction"><a href="global.html#BlendFunction">BlendFunction</a></li><li data-name="BlendingState"><a href="BlendingState.html">BlendingState</a></li><li data-name="BlendOption"><a href="global.html#BlendOption">BlendOption</a></li><li data-name="BoundingRectangle"><a href="BoundingRectangle.html">BoundingRectangle</a></li><li data-name="BoundingSphere"><a href="BoundingSphere.html">BoundingSphere</a></li><li data-name="boundingSphere"><a href="global.html#boundingSphere">boundingSphere</a></li><li data-name="BoxEmitter"><a href="BoxEmitter.html">BoxEmitter</a></li><li data-name="BoxGeometry"><a href="BoxGeometry.html">BoxGeometry</a></li><li data-name="BoxGeometryUpdater"><a href="BoxGeometryUpdater.html">BoxGeometryUpdater</a></li><li data-name="BoxGraphics"><a href="BoxGraphics.html">BoxGraphics</a></li><li data-name="BoxOutlineGeometry"><a href="BoxOutlineGeometry.html">BoxOutlineGeometry</a></li><li data-name="buildModuleUrl"><a href="global.html#buildModuleUrl">buildModuleUrl</a></li><li data-name="CallbackProperty"><a href="CallbackProperty.html">CallbackProperty</a></li><li data-name="Camera"><a href="Camera.html">Camera</a></li><li data-name="CameraEventAggregator"><a href="CameraEventAggregator.html">CameraEventAggregator</a></li><li data-name="CameraEventType"><a href="global.html#CameraEventType">CameraEventType</a></li><li data-name="cancelAnimationFrame"><a href="global.html#cancelAnimationFrame">cancelAnimationFrame</a></li><li data-name="Cartesian2"><a href="Cartesian2.html">Cartesian2</a></li><li data-name="Cartesian3"><a href="Cartesian3.html">Cartesian3</a></li><li data-name="Cartesian4"><a href="Cartesian4.html">Cartesian4</a></li><li data-name="Cartographic"><a href="Cartographic.html">Cartographic</a></li><li data-name="CartographicGeocoderService"><a href="CartographicGeocoderServic
</div>
</div>
<script>
if (window.frameElement) {
document.body.className = 'embedded';
var ele = document.createElement('a');
ele.className = 'popout';
ele.target = '_blank';
ele.href = window.location.href;
ele.title = 'Pop out';
document.getElementById('main').appendChild(ele);
}
// Set targets on external links. Sandcastle and GitHub shouldn't be embedded in any iframe.
Array.prototype.forEach.call(document.getElementsByTagName('a'), function(a) {
if (/^https?:/i.test(a.getAttribute('href'))) {
a.target='_blank';
}
});
</script>
<script src="javascript/prism.js"></script>
<script src="javascript/cesiumDoc.js"></script>
</body>
</html>