mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-24 21:48:48 +00:00
536 lines
25 KiB
HTML
536 lines
25 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 Vector4Extensions
|
|||
|
| X10D </title>
|
|||
|
<meta name="viewport" content="width=device-width">
|
|||
|
<meta name="title" content="Class Vector4Extensions
|
|||
|
| 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.Numerics.Vector4Extensions">
|
|||
|
|
|||
|
|
|||
|
<h1 id="X10D_Numerics_Vector4Extensions" data-uid="X10D.Numerics.Vector4Extensions" class="text-break">Class Vector4Extensions
|
|||
|
</h1>
|
|||
|
<div class="markdown level0 summary"><p>Numeric-extensions for <see cref="!:Vector4"></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">Vector4Extensions</span></div>
|
|||
|
</div>
|
|||
|
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Numerics.html">X10D.Numerics</a></h6>
|
|||
|
<h6><strong>Assembly</strong>: X10D.dll</h6>
|
|||
|
<h5 id="X10D_Numerics_Vector4Extensions_syntax">Syntax</h5>
|
|||
|
<div class="codewrapper">
|
|||
|
<pre><code class="lang-csharp hljs">public static class Vector4Extensions : 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_Numerics_Vector4Extensions_Deconstruct_Vector4_System_Single__System_Single__System_Single__System_Single__.md&value=---%0Auid%3A%20X10D.Numerics.Vector4Extensions.Deconstruct(Vector4%2CSystem.Single%40%2CSystem.Single%40%2CSystem.Single%40%2CSystem.Single%40)%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/Numerics/Vector4Extensions.cs/#L22">View Source</a>
|
|||
|
</span>
|
|||
|
<a id="X10D_Numerics_Vector4Extensions_Deconstruct_" data-uid="X10D.Numerics.Vector4Extensions.Deconstruct*"></a>
|
|||
|
<h4 id="X10D_Numerics_Vector4Extensions_Deconstruct_Vector4_System_Single__System_Single__System_Single__System_Single__" data-uid="X10D.Numerics.Vector4Extensions.Deconstruct(Vector4,System.Single@,System.Single@,System.Single@,System.Single@)">Deconstruct(Vector4, out Single, out Single, out Single, out Single)</h4>
|
|||
|
<div class="markdown level1 summary"><p>Deconstructs the current <see cref="!:Vector4"></see> into its components.</p>
|
|||
|
</div>
|
|||
|
<div class="markdown level1 conceptual"></div>
|
|||
|
<h5 class="decalaration">Declaration</h5>
|
|||
|
<div class="codewrapper">
|
|||
|
<pre><code class="lang-csharp hljs">public static void Deconstruct(this Vector4 vector, out float x, out float y, out float z, out float w)</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">Vector4</span></td>
|
|||
|
<td><span class="parametername">vector</span></td>
|
|||
|
<td><p>The vector to deconstruct.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">x</span></td>
|
|||
|
<td><p>The X component value.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">y</span></td>
|
|||
|
<td><p>The Y component value.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">z</span></td>
|
|||
|
<td><p>The Z component value.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">w</span></td>
|
|||
|
<td><p>The W component 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_Numerics_Vector4Extensions_Round_Vector4_.md&value=---%0Auid%3A%20X10D.Numerics.Vector4Extensions.Round(Vector4)%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/Numerics/Vector4Extensions.cs/#L35">View Source</a>
|
|||
|
</span>
|
|||
|
<a id="X10D_Numerics_Vector4Extensions_Round_" data-uid="X10D.Numerics.Vector4Extensions.Round*"></a>
|
|||
|
<h4 id="X10D_Numerics_Vector4Extensions_Round_Vector4_" data-uid="X10D.Numerics.Vector4Extensions.Round(Vector4)">Round(Vector4)</h4>
|
|||
|
<div class="markdown level1 summary"><p>Rounds the components in the current <see cref="!:Vector4"></see> to the nearest integer.</p>
|
|||
|
</div>
|
|||
|
<div class="markdown level1 conceptual"></div>
|
|||
|
<h5 class="decalaration">Declaration</h5>
|
|||
|
<div class="codewrapper">
|
|||
|
<pre><code class="lang-csharp hljs">public static Vector4 Round(this Vector4 vector)</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">Vector4</span></td>
|
|||
|
<td><span class="parametername">vector</span></td>
|
|||
|
<td><p>The vector whose components 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">Vector4</span></td>
|
|||
|
<td><p>The rounded vector.</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_Numerics_Vector4Extensions_Round_Vector4_System_Single_.md&value=---%0Auid%3A%20X10D.Numerics.Vector4Extensions.Round(Vector4%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/Numerics/Vector4Extensions.cs/#L48">View Source</a>
|
|||
|
</span>
|
|||
|
<a id="X10D_Numerics_Vector4Extensions_Round_" data-uid="X10D.Numerics.Vector4Extensions.Round*"></a>
|
|||
|
<h4 id="X10D_Numerics_Vector4Extensions_Round_Vector4_System_Single_" data-uid="X10D.Numerics.Vector4Extensions.Round(Vector4,System.Single)">Round(Vector4, Single)</h4>
|
|||
|
<div class="markdown level1 summary"><p>Rounds the components in the current <see cref="!:Vector4"></see> 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 Vector4 Round(this Vector4 vector, 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">Vector4</span></td>
|
|||
|
<td><span class="parametername">vector</span></td>
|
|||
|
<td><p>The vector whose components 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 the components 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">Vector4</span></td>
|
|||
|
<td><p>The rounded vector.</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_Numerics_Vector4Extensions_WithW_Vector4_System_Single_.md&value=---%0Auid%3A%20X10D.Numerics.Vector4Extensions.WithW(Vector4%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/Numerics/Vector4Extensions.cs/#L124">View Source</a>
|
|||
|
</span>
|
|||
|
<a id="X10D_Numerics_Vector4Extensions_WithW_" data-uid="X10D.Numerics.Vector4Extensions.WithW*"></a>
|
|||
|
<h4 id="X10D_Numerics_Vector4Extensions_WithW_Vector4_System_Single_" data-uid="X10D.Numerics.Vector4Extensions.WithW(Vector4,System.Single)">WithW(Vector4, Single)</h4>
|
|||
|
<div class="markdown level1 summary"><p>Returns a vector whose X, Y, and Z components are the same as the specified vector, and whose W component is a new
|
|||
|
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 Vector4 WithW(this Vector4 vector, float w)</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">Vector4</span></td>
|
|||
|
<td><span class="parametername">vector</span></td>
|
|||
|
<td><p>The vector to copy.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">w</span></td>
|
|||
|
<td><p>The new W component value.</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">Vector4</span></td>
|
|||
|
<td><p>A new instance of <see cref="!:Vector4"></see> whose <see cref="!:Vector4.X"></see>, <see cref="!:Vector4.Y"></see>, and
|
|||
|
<see cref="!:Vector4.Z"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">vector</code>, and whose
|
|||
|
<see cref="!:Vector4.W"></see> component is <code data-dev-comment-type="paramref" class="paramref">w</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_Numerics_Vector4Extensions_WithX_Vector4_System_Single_.md&value=---%0Auid%3A%20X10D.Numerics.Vector4Extensions.WithX(Vector4%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/Numerics/Vector4Extensions.cs/#L70">View Source</a>
|
|||
|
</span>
|
|||
|
<a id="X10D_Numerics_Vector4Extensions_WithX_" data-uid="X10D.Numerics.Vector4Extensions.WithX*"></a>
|
|||
|
<h4 id="X10D_Numerics_Vector4Extensions_WithX_Vector4_System_Single_" data-uid="X10D.Numerics.Vector4Extensions.WithX(Vector4,System.Single)">WithX(Vector4, Single)</h4>
|
|||
|
<div class="markdown level1 summary"><p>Returns a vector whose Y, Z, and W components are the same as the specified vector, and whose X component is a new
|
|||
|
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 Vector4 WithX(this Vector4 vector, float x)</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">Vector4</span></td>
|
|||
|
<td><span class="parametername">vector</span></td>
|
|||
|
<td><p>The vector to copy.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">x</span></td>
|
|||
|
<td><p>The new X component value.</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">Vector4</span></td>
|
|||
|
<td><p>A new instance of <see cref="!:Vector4"></see> whose <see cref="!:Vector4.Y"></see>, <see cref="!:Vector4.Z"></see>, and
|
|||
|
<see cref="!:Vector4.W"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">vector</code>, and whose
|
|||
|
<see cref="!:Vector4.X"></see> component is <code data-dev-comment-type="paramref" class="paramref">x</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_Numerics_Vector4Extensions_WithY_Vector4_System_Single_.md&value=---%0Auid%3A%20X10D.Numerics.Vector4Extensions.WithY(Vector4%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/Numerics/Vector4Extensions.cs/#L88">View Source</a>
|
|||
|
</span>
|
|||
|
<a id="X10D_Numerics_Vector4Extensions_WithY_" data-uid="X10D.Numerics.Vector4Extensions.WithY*"></a>
|
|||
|
<h4 id="X10D_Numerics_Vector4Extensions_WithY_Vector4_System_Single_" data-uid="X10D.Numerics.Vector4Extensions.WithY(Vector4,System.Single)">WithY(Vector4, Single)</h4>
|
|||
|
<div class="markdown level1 summary"><p>Returns a vector whose X, Z, and W components are the same as the specified vector, and whose Y component is a new
|
|||
|
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 Vector4 WithY(this Vector4 vector, float y)</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">Vector4</span></td>
|
|||
|
<td><span class="parametername">vector</span></td>
|
|||
|
<td><p>The vector to copy.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">y</span></td>
|
|||
|
<td><p>The new Y component value.</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">Vector4</span></td>
|
|||
|
<td><p>A new instance of <see cref="!:Vector4"></see> whose <see cref="!:Vector4.X"></see>, <see cref="!:Vector4.Z"></see>, and
|
|||
|
<see cref="!:Vector4.W"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">vector</code>, and whose
|
|||
|
<see cref="!:Vector4.Y"></see> component is <code data-dev-comment-type="paramref" class="paramref">y</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_Numerics_Vector4Extensions_WithZ_Vector4_System_Single_.md&value=---%0Auid%3A%20X10D.Numerics.Vector4Extensions.WithZ(Vector4%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/Numerics/Vector4Extensions.cs/#L106">View Source</a>
|
|||
|
</span>
|
|||
|
<a id="X10D_Numerics_Vector4Extensions_WithZ_" data-uid="X10D.Numerics.Vector4Extensions.WithZ*"></a>
|
|||
|
<h4 id="X10D_Numerics_Vector4Extensions_WithZ_Vector4_System_Single_" data-uid="X10D.Numerics.Vector4Extensions.WithZ(Vector4,System.Single)">WithZ(Vector4, Single)</h4>
|
|||
|
<div class="markdown level1 summary"><p>Returns a vector whose X, Y, and W components are the same as the specified vector, and whose Z component is a new
|
|||
|
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 Vector4 WithZ(this Vector4 vector, float z)</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">Vector4</span></td>
|
|||
|
<td><span class="parametername">vector</span></td>
|
|||
|
<td><p>The vector to copy.</p>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><span class="xref">System.Single</span></td>
|
|||
|
<td><span class="parametername">z</span></td>
|
|||
|
<td><p>The new Z component value.</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">Vector4</span></td>
|
|||
|
<td><p>A new instance of <see cref="!:Vector4"></see> whose <see cref="!:Vector4.X"></see>, <see cref="!:Vector4.Y"></see>, and
|
|||
|
<see cref="!:Vector4.W"></see> components are the same as that of <code data-dev-comment-type="paramref" class="paramref">vector</code>, and whose
|
|||
|
<see cref="!:Vector4.Z"></see> component is <code data-dev-comment-type="paramref" class="paramref">z</code>.</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>
|