mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-24 19:28:46 +00:00
1392 lines
64 KiB
HTML
1392 lines
64 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if IE]><![endif]-->
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>Class SingleExtensions
|
|
| X10D </title>
|
|
<meta name="viewport" content="width=device-width">
|
|
<meta name="title" content="Class SingleExtensions
|
|
| X10D ">
|
|
<meta name="generator" content="docfx 2.56.7.0">
|
|
|
|
<link rel="shortcut icon" href="../images/favicon.png">
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/night-owl.min.css">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="../styles/config.css">
|
|
<link rel="stylesheet" href="../styles/discord.css">
|
|
<link rel="stylesheet" href="../styles/singulink.css">
|
|
<link rel="stylesheet" href="../styles/main.css">
|
|
<meta property="docfx:navrel" content="../toc.html">
|
|
<meta property="docfx:tocrel" content="toc.html">
|
|
|
|
<meta property="docfx:rel" content="../">
|
|
<meta property="docfx:newtab" content="true">
|
|
</head>
|
|
<body>
|
|
<div class="top-navbar">
|
|
<a class="burger-icon" onclick="toggleMenu()">
|
|
<svg name="Hamburger" style="vertical-align: middle;" width="34" height="34" viewbox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
|
|
</a>
|
|
|
|
|
|
<a class="brand" href="../index.html">
|
|
<img src="../images/favicon.png" alt="X10D" class="logomark">
|
|
<span class="brand-title">X10D</span>
|
|
</a> </div>
|
|
|
|
<div class="body-content">
|
|
<div id="blackout" class="blackout" onclick="toggleMenu()"></div>
|
|
|
|
<nav id="sidebar" role="navigation">
|
|
<div class="sidebar">
|
|
|
|
<div>
|
|
<div class="mobile-hide">
|
|
|
|
<a class="brand" href="../index.html">
|
|
<img src="../images/favicon.png" alt="X10D" class="logomark">
|
|
<span class="brand-title">X10D</span>
|
|
</a> </div>
|
|
|
|
<div class="sidesearch">
|
|
<form id="search" role="search" class="search">
|
|
<i class="bi bi-search search-icon"></i>
|
|
<input type="text" id="search-query" placeholder="Search" autocomplete="off">
|
|
</form>
|
|
</div>
|
|
|
|
<div id="navbar">
|
|
</div>
|
|
</div> <div class="sidebar-item-separator"></div>
|
|
|
|
<div id="sidetoggle">
|
|
<div id="sidetoc"></div>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
<strong>DocFX + Singulink = ♥</strong>
|
|
|
|
</div> </nav>
|
|
|
|
<main class="main-panel">
|
|
|
|
<div id="search-results" style="display: none;">
|
|
<h1 class="search-list">Search Results for <span></span></h1>
|
|
<div class="sr-items">
|
|
<p><i class="bi bi-hourglass-split index-loading"></i></p>
|
|
</div>
|
|
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
|
|
</div>
|
|
<div role="main" class="hide-when-search">
|
|
|
|
<div class="subnav navbar navbar-default">
|
|
<div class="container hide-when-search" id="breadcrumb">
|
|
<ul class="breadcrumb">
|
|
<li></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<article class="content wrap" id="_content" data-uid="X10D.Math.SingleExtensions">
|
|
|
|
|
|
<h1 id="X10D_Math_SingleExtensions" data-uid="X10D.Math.SingleExtensions" class="text-break">Class SingleExtensions
|
|
</h1>
|
|
<div class="markdown level0 summary"><p>Extension methods for <see cref="!:System.Single"></see>.</p>
|
|
</div>
|
|
<div class="markdown level0 conceptual"></div>
|
|
<div class="inheritance">
|
|
<h5>Inheritance</h5>
|
|
<div class="level0"><span class="xref">System.Object</span></div>
|
|
<div class="level1"><span class="xref">SingleExtensions</span></div>
|
|
</div>
|
|
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Math.html">X10D.Math</a></h6>
|
|
<h6><strong>Assembly</strong>: X10D.dll</h6>
|
|
<h5 id="X10D_Math_SingleExtensions_syntax">Syntax</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static class SingleExtensions : object</code></pre>
|
|
</div>
|
|
<h3 id="methods">Methods
|
|
</h3>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Acos_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Acos(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L23">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Acos_" data-uid="X10D.Math.SingleExtensions.Acos*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Acos_System_Single_" data-uid="X10D.Math.SingleExtensions.Acos(System.Single)">Acos(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the arccosine of the specified value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Acos(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value representing a cosine, which must be greater than or equal to -1, but less than or equal to 1.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The arccosine of <code data-dev-comment-type="paramref" class="paramref">value</code>, θ, measured in radians; such that 0 ≤ θ ≤ π. If <code data-dev-comment-type="paramref" class="paramref">value</code>
|
|
is equal to <see cref="!:float.NaN"></see>, less than -1, or greater than 1, <see cref="!:float.NaN"></see> is returned.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Acosh_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Acosh(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L41">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Acosh_" data-uid="X10D.Math.SingleExtensions.Acosh*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Acosh_System_Single_" data-uid="X10D.Math.SingleExtensions.Acosh(System.Single)">Acosh(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the hyperbolic arccosine of the specified value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Acosh(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value representing a hyperbolic cosine, which must be greater than or equal to 1, but less than or equal to
|
|
<see cref="!:float.PositiveInfinity"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The hyperbolic arccosine of <code data-dev-comment-type="paramref" class="paramref">value</code>, θ, measured in radians; such that 0 ≤ θ ≤ ∞. If
|
|
<code data-dev-comment-type="paramref" class="paramref">value</code> is less than 1 or equal to <see cref="!:float.NaN"></see>, <see cref="!:float.NaN"></see> is returned.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Asin_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Asin(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L59">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Asin_" data-uid="X10D.Math.SingleExtensions.Asin*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Asin_System_Single_" data-uid="X10D.Math.SingleExtensions.Asin(System.Single)">Asin(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the arcsine of the specified value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Asin(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value representing a sine, which must be greater than or equal to -1, but less than or equal to 1.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The arccosine of <code data-dev-comment-type="paramref" class="paramref">value</code>, θ, measured in radians; such that π/2 ≤ θ ≤ π/2. If
|
|
<code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.NaN"></see>, less than -1, or greater than 1,
|
|
<see cref="!:float.NaN"></see> is returned.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Asinh_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Asinh(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L77">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Asinh_" data-uid="X10D.Math.SingleExtensions.Asinh*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Asinh_System_Single_" data-uid="X10D.Math.SingleExtensions.Asinh(System.Single)">Asinh(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the hyperbolic arcsine of the specified value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Asinh(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value representing a hyperbolic sine, which must be greater than or equal to 1, but less than or equal to
|
|
<see cref="!:float.PositiveInfinity"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The hyperbolic arccosine of <code data-dev-comment-type="paramref" class="paramref">value</code>, measured in radians. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to
|
|
<see cref="!:float.NaN"></see>, <see cref="!:float.NaN"></see> is returned.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Atan_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Atan(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L94">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Atan_" data-uid="X10D.Math.SingleExtensions.Atan*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Atan_System_Single_" data-uid="X10D.Math.SingleExtensions.Atan(System.Single)">Atan(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the arctangent of the specified value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Atan(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value representing a tangent, which must be greater than or equal to -1, but less than or equal to 1.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The arctangent of <code data-dev-comment-type="paramref" class="paramref">value</code>, θ, measured in radians; such that π/2 ≤ θ ≤ π/2. If
|
|
<code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.NaN"></see>, <see cref="!:float.NaN"></see> is returned.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Atanh_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Atanh(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L113">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Atanh_" data-uid="X10D.Math.SingleExtensions.Atanh*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Atanh_System_Single_" data-uid="X10D.Math.SingleExtensions.Atanh(System.Single)">Atanh(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the hyperbolic arctangent of the specified value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Atanh(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value representing a hyperbolic tangent, which must be greater than or equal to 1, but less than or equal to
|
|
<see cref="!:float.PositiveInfinity"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The hyperbolic arctangent of <code data-dev-comment-type="paramref" class="paramref">value</code>, θ, measured in radians; such that -∞ < θ < -1, or 1 <
|
|
θ < ∞. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.NaN"></see>, less than -1, or greater than 1,
|
|
<see cref="!:float.NaN"></see> is returned.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_ComplexSqrt_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.ComplexSqrt(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L125">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_ComplexSqrt_" data-uid="X10D.Math.SingleExtensions.ComplexSqrt*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_ComplexSqrt_System_Single_" data-uid="X10D.Math.SingleExtensions.ComplexSqrt(System.Single)">ComplexSqrt(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the complex square root of this single-precision floating-point number.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Complex ComplexSqrt(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The number whose square root is to be found.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">Complex</span></td>
|
|
<td><p>The square root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Cos_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Cos(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L155">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Cos_" data-uid="X10D.Math.SingleExtensions.Cos*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Cos_System_Single_" data-uid="X10D.Math.SingleExtensions.Cos(System.Single)">Cos(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the cosine of the specified angle.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Cos(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle, measured in radians.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The cosine of <code data-dev-comment-type="paramref" class="paramref">value</code>. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.NaN"></see>,
|
|
<see cref="!:float.NegativeInfinity"></see>, or <see cref="!:float.PositiveInfinity"></see>, this method returns
|
|
<see cref="!:float.NaN"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Cosh_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Cosh(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L172">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Cosh_" data-uid="X10D.Math.SingleExtensions.Cosh*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Cosh_System_Single_" data-uid="X10D.Math.SingleExtensions.Cosh(System.Single)">Cosh(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the hyperbolic cosine of the specified angle.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Cosh(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle, measured in radians.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The hyperbolic cosine of <code data-dev-comment-type="paramref" class="paramref">value</code>. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to
|
|
<see cref="!:float.NegativeInfinity"></see> or <see cref="!:float.PositiveInfinity"></see>,
|
|
<see cref="!:float.PositiveInfinity"></see> is returned. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to
|
|
<see cref="!:float.NaN"></see>, <see cref="!:double.NaN"></see> is returned.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_DegreesToRadians_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.DegreesToRadians(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L184">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_DegreesToRadians_" data-uid="X10D.Math.SingleExtensions.DegreesToRadians*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_DegreesToRadians_System_Single_" data-uid="X10D.Math.SingleExtensions.DegreesToRadians(System.Single)">DegreesToRadians(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Converts the current angle in degrees to its equivalent represented in radians.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float DegreesToRadians(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle in degrees to convert.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The result of π * <code data-dev-comment-type="paramref" class="paramref">value</code> / 180.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_IsEven_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.IsEven(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L199">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_IsEven_" data-uid="X10D.Math.SingleExtensions.IsEven*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_IsEven_System_Single_" data-uid="X10D.Math.SingleExtensions.IsEven(System.Single)">IsEven(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is evenly divisible by 2.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsEven(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value whose parity to check.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is evenly divisible by 2, or <span class="xref">false</span>
|
|
otherwise.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_IsOdd_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.IsOdd(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L214">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_IsOdd_" data-uid="X10D.Math.SingleExtensions.IsOdd*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_IsOdd_System_Single_" data-uid="X10D.Math.SingleExtensions.IsOdd(System.Single)">IsOdd(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a value indicating whether the current value is not evenly divisible by 2.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsOdd(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value whose parity to check.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is not evenly divisible by 2, or <span class="xref">false</span>
|
|
otherwise.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_RadiansToDegrees_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.RadiansToDegrees(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L226">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_RadiansToDegrees_" data-uid="X10D.Math.SingleExtensions.RadiansToDegrees*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_RadiansToDegrees_System_Single_" data-uid="X10D.Math.SingleExtensions.RadiansToDegrees(System.Single)">RadiansToDegrees(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Converts the current angle in radians to its equivalent represented in degrees.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float RadiansToDegrees(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle in radians to convert.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The result of π * <code data-dev-comment-type="paramref" class="paramref">value</code> / 180.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Round_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Round(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L238">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Round_" data-uid="X10D.Math.SingleExtensions.Round*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Round_System_Single_" data-uid="X10D.Math.SingleExtensions.Round(System.Single)">Round(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Rounds the current value to the nearest whole number.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Round(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to round.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p><code data-dev-comment-type="paramref" class="paramref">value</code> rounded to the nearest whole number.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Round_System_Single_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Round(System.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L251">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Round_" data-uid="X10D.Math.SingleExtensions.Round*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Round_System_Single_System_Single_" data-uid="X10D.Math.SingleExtensions.Round(System.Single,System.Single)">Round(Single, Single)</h4>
|
|
<div class="markdown level1 summary"><p>Rounds the current value to the nearest multiple of a specified number.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Round(this float value, float nearest)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to round.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">nearest</span></td>
|
|
<td><p>The nearest multiple to which <code data-dev-comment-type="paramref" class="paramref">value</code> should be rounded.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p><code data-dev-comment-type="paramref" class="paramref">value</code> rounded to the nearest multiple of <code data-dev-comment-type="paramref" class="paramref">nearest</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Saturate_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Saturate(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L264">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Saturate_" data-uid="X10D.Math.SingleExtensions.Saturate*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Saturate_System_Single_" data-uid="X10D.Math.SingleExtensions.Saturate(System.Single)">Saturate(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Saturates this single-precision floating-point number.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Saturate(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to saturate.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The saturated value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 id="X10D_Math_SingleExtensions_Saturate_System_Single__remarks">Remarks</h5>
|
|
<div class="markdown level1 remarks"><p>This method clamps <code data-dev-comment-type="paramref" class="paramref">value</code> between 0 and 1.</p>
|
|
</div>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Sign_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Sign(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L298">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Sign_" data-uid="X10D.Math.SingleExtensions.Sign*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Sign_System_Single_" data-uid="X10D.Math.SingleExtensions.Sign(System.Single)">Sign(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns an integer that indicates the sign of this single-precision floating-point number.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int Sign(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>A signed number.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><p>A number that indicates the sign of <code data-dev-comment-type="paramref" class="paramref">value</code>, as shown in the following table.</p>
|
|
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>-1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is less than zero.</td></tr><tr><td>0</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to zero.</td></tr><tr><td>1</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than zero.</td></tr></tbody></table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Sin_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Sin(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L368">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Sin_" data-uid="X10D.Math.SingleExtensions.Sin*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Sin_System_Single_" data-uid="X10D.Math.SingleExtensions.Sin(System.Single)">Sin(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the sine of the specified angle.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Sin(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle, measured in radians.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The sine of <code data-dev-comment-type="paramref" class="paramref">value</code>. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:double.NaN"></see>,
|
|
<see cref="!:double.NegativeInfinity"></see>, or <see cref="!:double.PositiveInfinity"></see>, this method returns
|
|
<see cref="!:double.NaN"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Sinh_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Sinh(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L384">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Sinh_" data-uid="X10D.Math.SingleExtensions.Sinh*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Sinh_System_Single_" data-uid="X10D.Math.SingleExtensions.Sinh(System.Single)">Sinh(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the hyperbolic sine of the specified angle.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Sinh(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle, measured in radians.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The hyperbolic sine of <code data-dev-comment-type="paramref" class="paramref">value</code>. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.NaN"></see>,
|
|
<see cref="!:float.NegativeInfinity"></see>, or <see cref="!:float.PositiveInfinity"></see>, this method returns
|
|
<see cref="!:float.NaN"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Sqrt_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Sqrt(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L334">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Sqrt_" data-uid="X10D.Math.SingleExtensions.Sqrt*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Sqrt_System_Single_" data-uid="X10D.Math.SingleExtensions.Sqrt(System.Single)">Sqrt(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the square root of this single-precision floating-point number.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Sqrt(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The number whose square root is to be found.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>One of the values in the following table.</p>
|
|
<table><thead><tr><th>Return value</th><th>Meaning</th></tr></thead><tbody><tr><td>The positive square root of <code data-dev-comment-type="paramref" class="paramref">value</code>.</td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is greater than or equal to 0.</td></tr><tr><td><see cref="!:float.NaN"></see></td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.NaN"></see> or is negative.</td></tr><tr><td><see cref="!:float.PositiveInfinity"></see></td><td><code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.PositiveInfinity"></see>.</td></tr></tbody></table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Tan_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Tan(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L400">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Tan_" data-uid="X10D.Math.SingleExtensions.Tan*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Tan_System_Single_" data-uid="X10D.Math.SingleExtensions.Tan(System.Single)">Tan(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the tangent of the specified angle.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Tan(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle, measured in radians.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The tangent of <code data-dev-comment-type="paramref" class="paramref">value</code>. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to <see cref="!:float.NaN"></see>,
|
|
<see cref="!:float.NegativeInfinity"></see>, or <see cref="!:float.PositiveInfinity"></see>, this method returns
|
|
<see cref="!:float.NaN"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Tanh_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Tanh(System.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L417">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Tanh_" data-uid="X10D.Math.SingleExtensions.Tanh*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Tanh_System_Single_" data-uid="X10D.Math.SingleExtensions.Tanh(System.Single)">Tanh(Single)</h4>
|
|
<div class="markdown level1 summary"><p>Returns the hyperbolic tangent of the specified angle.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Tanh(this float value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The angle, measured in radians.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The hyperbolic tangent of <code data-dev-comment-type="paramref" class="paramref">value</code>. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to
|
|
<see cref="!:float.NegativeInfinity"></see>, this method returns -1. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to
|
|
<see cref="!:float.PositiveInfinity"></see>, this method returns 1. If <code data-dev-comment-type="paramref" class="paramref">value</code> is equal to
|
|
<see cref="!:float.NaN"></see>, this method returns <see cref="!:float.NaN"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Wrap_System_Single_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Wrap(System.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L444">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Wrap_" data-uid="X10D.Math.SingleExtensions.Wrap*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Wrap_System_Single_System_Single_" data-uid="X10D.Math.SingleExtensions.Wrap(System.Single,System.Single)">Wrap(Single, Single)</h4>
|
|
<div class="markdown level1 summary"><p>Wraps the current single-precision floating-point number between 0 and a high value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Wrap(this float value, float length)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to wrap.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">length</span></td>
|
|
<td><p>The exclusive upper bound.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The wrapped value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Math_SingleExtensions_Wrap_System_Single_System_Single_System_Single_.md&value=---%0Auid%3A%20X10D.Math.SingleExtensions.Wrap(System.Single%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Math/SingleExtensions.cs/#L431">View Source</a>
|
|
</span>
|
|
<a id="X10D_Math_SingleExtensions_Wrap_" data-uid="X10D.Math.SingleExtensions.Wrap*"></a>
|
|
<h4 id="X10D_Math_SingleExtensions_Wrap_System_Single_System_Single_System_Single_" data-uid="X10D.Math.SingleExtensions.Wrap(System.Single,System.Single,System.Single)">Wrap(Single, Single, Single)</h4>
|
|
<div class="markdown level1 summary"><p>Wraps the current single-precision floating-point number between a low and a high value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static float Wrap(this float value, float low, float high)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to wrap.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">low</span></td>
|
|
<td><p>The inclusive lower bound.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">high</span></td>
|
|
<td><p>The exclusive upper bound.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><p>The wrapped value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="copyright-footer">
|
|
<span>© Singulink. All rights reserved.</span>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
|
|
<script type="text/javascript" src="../styles/jquery.twbsPagination.js"></script>
|
|
<script type="text/javascript" src="../styles/url.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
|
|
<script type="text/javascript" src="../styles/docfx.js"></script>
|
|
<script type="text/javascript" src="../styles/singulink.js"></script>
|
|
<script type="text/javascript" src="../styles/main.js"></script> </body>
|
|
</html>
|