Files
phy/bevy_math/swizzles/trait.Vec2Swizzles.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

39 lines
36 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Vec2Swizzles` trait in crate `bevy_math`."><title>Vec2Swizzles in bevy_math::swizzles - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="bevy_math" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://bevyengine.org/assets/icon.png"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../bevy_math/index.html"><img src="https://bevyengine.org/assets/icon.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../bevy_math/index.html"><img src="https://bevyengine.org/assets/icon.png" alt="logo"></a><h2><a href="../../bevy_math/index.html">bevy_<wbr>math</a><span class="version">0.15.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Vec2<wbr>Swizzles</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Vec3" title="Vec3">Vec3</a></li><li><a href="#associatedtype.Vec4" title="Vec4">Vec4</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.xx" title="xx">xx</a></li><li><a href="#tymethod.xxx" title="xxx">xxx</a></li><li><a href="#tymethod.xxxx" title="xxxx">xxxx</a></li><li><a href="#tymethod.xxxy" title="xxxy">xxxy</a></li><li><a href="#tymethod.xxy" title="xxy">xxy</a></li><li><a href="#tymethod.xxyx" title="xxyx">xxyx</a></li><li><a href="#tymethod.xxyy" title="xxyy">xxyy</a></li><li><a href="#tymethod.xyx" title="xyx">xyx</a></li><li><a href="#tymethod.xyxx" title="xyxx">xyxx</a></li><li><a href="#tymethod.xyxy" title="xyxy">xyxy</a></li><li><a href="#tymethod.xyy" title="xyy">xyy</a></li><li><a href="#tymethod.xyyx" title="xyyx">xyyx</a></li><li><a href="#tymethod.xyyy" title="xyyy">xyyy</a></li><li><a href="#tymethod.yx" title="yx">yx</a></li><li><a href="#tymethod.yxx" title="yxx">yxx</a></li><li><a href="#tymethod.yxxx" title="yxxx">yxxx</a></li><li><a href="#tymethod.yxxy" title="yxxy">yxxy</a></li><li><a href="#tymethod.yxy" title="yxy">yxy</a></li><li><a href="#tymethod.yxyx" title="yxyx">yxyx</a></li><li><a href="#tymethod.yxyy" title="yxyy">yxyy</a></li><li><a href="#tymethod.yy" title="yy">yy</a></li><li><a href="#tymethod.yyx" title="yyx">yyx</a></li><li><a href="#tymethod.yyxx" title="yyxx">yyxx</a></li><li><a href="#tymethod.yyxy" title="yyxy">yyxy</a></li><li><a href="#tymethod.yyy" title="yyy">yyy</a></li><li><a href="#tymethod.yyyx" title="yyyx">yyyx</a></li><li><a href="#tymethod.yyyy" title="yyyy">yyyy</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.xy" title="xy">xy</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In bevy_<wbr>math::<wbr>swizzles</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">bevy_math</a>::<wbr><a href="index.html">swizzles</a></span><h1>Trait <span class="trait">Vec2Swizzles</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/glam/swizzles/vec_traits.rs.html#3">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Vec2Swizzles:
<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> {
type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a>;
type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a>;
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 28 methods</span></summary> // Required methods
fn <a href="#tymethod.xx" class="fn">xx</a>(self) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.yx" class="fn">yx</a>(self) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.yy" class="fn">yy</a>(self) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.xxx" class="fn">xxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xxy" class="fn">xxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xyx" class="fn">xyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xyy" class="fn">xyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yxx" class="fn">yxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yxy" class="fn">yxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yyx" class="fn">yyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yyy" class="fn">yyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xxxx" class="fn">xxxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xxxy" class="fn">xxxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xxyx" class="fn">xxyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xxyy" class="fn">xxyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xyxx" class="fn">xyxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xyxy" class="fn">xyxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xyyx" class="fn">xyyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.xyyy" class="fn">xyyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yxxx" class="fn">yxxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yxxy" class="fn">yxxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yxyx" class="fn">yxyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yxyy" class="fn">yxyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yyxx" class="fn">yyxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yyxy" class="fn">yyxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yyyx" class="fn">yyyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.yyyy" class="fn">yyyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a>;
// Provided method
fn <a href="#method.xy" class="fn">xy</a>(self) -&gt; Self { ... }
</details>}</code></pre><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.Vec3" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#4">Source</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a></h4></section><section id="associatedtype.Vec4" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#6">Source</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a></h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.xx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#14">Source</a><h4 class="code-header">fn <a href="#tymethod.xx" class="fn">xx</a>(self) -&gt; Self</h4></section><section id="tymethod.yx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#16">Source</a><h4 class="code-header">fn <a href="#tymethod.yx" class="fn">yx</a>(self) -&gt; Self</h4></section><section id="tymethod.yy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#18">Source</a><h4 class="code-header">fn <a href="#tymethod.yy" class="fn">yy</a>(self) -&gt; Self</h4></section><section id="tymethod.xxx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#20">Source</a><h4 class="code-header">fn <a href="#tymethod.xxx" class="fn">xxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.xxy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#22">Source</a><h4 class="code-header">fn <a href="#tymethod.xxy" class="fn">xxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.xyx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#24">Source</a><h4 class="code-header">fn <a href="#tymethod.xyx" class="fn">xyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.xyy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#26">Source</a><h4 class="code-header">fn <a href="#tymethod.xyy" class="fn">xyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.yxx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#28">Source</a><h4 class="code-header">fn <a href="#tymethod.yxx" class="fn">yxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.yxy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#30">Source</a><h4 class="code-header">fn <a href="#tymethod.yxy" class="fn">yxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.yyx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#32">Source</a><h4 class="code-header">fn <a href="#tymethod.yyx" class="fn">yyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.yyy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#34">Source</a><h4 class="code-header">fn <a href="#tymethod.yyy" class="fn">yyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec3" title="type bevy_math::Vec2Swizzles::Vec3">Vec3</a></h4></section><section id="tymethod.xxxx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#36">Source</a><h4 class="code-header">fn <a href="#tymethod.xxxx" class="fn">xxxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.xxxy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#38">Source</a><h4 class="code-header">fn <a href="#tymethod.xxxy" class="fn">xxxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.xxyx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#40">Source</a><h4 class="code-header">fn <a href="#tymethod.xxyx" class="fn">xxyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.xxyy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#42">Source</a><h4 class="code-header">fn <a href="#tymethod.xxyy" class="fn">xxyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.xyxx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#44">Source</a><h4 class="code-header">fn <a href="#tymethod.xyxx" class="fn">xyxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.xyxy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#46">Source</a><h4 class="code-header">fn <a href="#tymethod.xyxy" class="fn">xyxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.xyyx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#48">Source</a><h4 class="code-header">fn <a href="#tymethod.xyyx" class="fn">xyyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.xyyy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#50">Source</a><h4 class="code-header">fn <a href="#tymethod.xyyy" class="fn">xyyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yxxx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#52">Source</a><h4 class="code-header">fn <a href="#tymethod.yxxx" class="fn">yxxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yxxy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#54">Source</a><h4 class="code-header">fn <a href="#tymethod.yxxy" class="fn">yxxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yxyx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#56">Source</a><h4 class="code-header">fn <a href="#tymethod.yxyx" class="fn">yxyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yxyy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#58">Source</a><h4 class="code-header">fn <a href="#tymethod.yxyy" class="fn">yxyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yyxx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#60">Source</a><h4 class="code-header">fn <a href="#tymethod.yyxx" class="fn">yyxx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yyxy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#62">Source</a><h4 class="code-header">fn <a href="#tymethod.yyxy" class="fn">yyxy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yyyx" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#64">Source</a><h4 class="code-header">fn <a href="#tymethod.yyyx" class="fn">yyyx</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section><section id="tymethod.yyyy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#66">Source</a><h4 class="code-header">fn <a href="#tymethod.yyyy" class="fn">yyyy</a>(self) -&gt; Self::<a class="associatedtype" href="../trait.Vec2Swizzles.html#associatedtype.Vec4" title="type bevy_math::Vec2Swizzles::Vec4">Vec4</a></h4></section></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.xy" class="method"><a class="src rightside" href="../../src/glam/swizzles/vec_traits.rs.html#10">Source</a><h4 class="code-header">fn <a href="#method.xy" class="fn">xy</a>(self) -&gt; Self</h4></section></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.0/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-DVec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/dvec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-DVec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.DVec2.html" title="struct bevy_math::DVec2">DVec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/dvec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.DVec3.html" title="struct bevy_math::DVec3">DVec3</a></h4></section><section id="associatedtype.Vec4-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/dvec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.DVec4.html" title="struct bevy_math::DVec4">DVec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-I8Vec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/i8vec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-I8Vec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.I8Vec2.html" title="struct bevy_math::I8Vec2">I8Vec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/i8vec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.I8Vec3.html" title="struct bevy_math::I8Vec3">I8Vec3</a></h4></section><section id="associatedtype.Vec4-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/i8vec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.I8Vec4.html" title="struct bevy_math::I8Vec4">I8Vec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-I16Vec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/i16vec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-I16Vec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.I16Vec2.html" title="struct bevy_math::I16Vec2">I16Vec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/i16vec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.I16Vec3.html" title="struct bevy_math::I16Vec3">I16Vec3</a></h4></section><section id="associatedtype.Vec4-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/i16vec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.I16Vec4.html" title="struct bevy_math::I16Vec4">I16Vec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-I64Vec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/i64vec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-I64Vec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.I64Vec2.html" title="struct bevy_math::I64Vec2">I64Vec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/i64vec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.I64Vec3.html" title="struct bevy_math::I64Vec3">I64Vec3</a></h4></section><section id="associatedtype.Vec4-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/i64vec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.I64Vec4.html" title="struct bevy_math::I64Vec4">I64Vec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-IVec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/ivec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-IVec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.IVec2.html" title="struct bevy_math::IVec2">IVec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/ivec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.IVec3.html" title="struct bevy_math::IVec3">IVec3</a></h4></section><section id="associatedtype.Vec4-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/ivec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.IVec4.html" title="struct bevy_math::IVec4">IVec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-U8Vec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/u8vec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-U8Vec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.U8Vec2.html" title="struct bevy_math::U8Vec2">U8Vec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/u8vec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.U8Vec3.html" title="struct bevy_math::U8Vec3">U8Vec3</a></h4></section><section id="associatedtype.Vec4-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/u8vec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.U8Vec4.html" title="struct bevy_math::U8Vec4">U8Vec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-U16Vec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/u16vec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-U16Vec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.U16Vec2.html" title="struct bevy_math::U16Vec2">U16Vec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/u16vec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.U16Vec3.html" title="struct bevy_math::U16Vec3">U16Vec3</a></h4></section><section id="associatedtype.Vec4-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/u16vec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.U16Vec4.html" title="struct bevy_math::U16Vec4">U16Vec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-U64Vec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/u64vec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-U64Vec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.U64Vec2.html" title="struct bevy_math::U64Vec2">U64Vec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/u64vec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.U64Vec3.html" title="struct bevy_math::U64Vec3">U64Vec3</a></h4></section><section id="associatedtype.Vec4-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/u64vec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.U64Vec4.html" title="struct bevy_math::U64Vec4">U64Vec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-UVec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/uvec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-UVec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.UVec2.html" title="struct bevy_math::UVec2">UVec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/uvec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.UVec3.html" title="struct bevy_math::UVec3">UVec3</a></h4></section><section id="associatedtype.Vec4-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/uvec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.UVec4.html" title="struct bevy_math::UVec4">UVec4</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Vec2Swizzles-for-Vec2" class="impl"><a class="src rightside" href="../../src/glam/swizzles/vec2_impl.rs.html#5">Source</a><a href="#impl-Vec2Swizzles-for-Vec2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Vec2Swizzles.html" title="trait bevy_math::Vec2Swizzles">Vec2Swizzles</a> for <a class="struct" href="../struct.Vec2.html" title="struct bevy_math::Vec2">Vec2</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Vec3-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/vec2_impl.rs.html#6">Source</a><a href="#associatedtype.Vec3-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec3" class="associatedtype">Vec3</a> = <a class="struct" href="../struct.Vec3.html" title="struct bevy_math::Vec3">Vec3</a></h4></section><section id="associatedtype.Vec4-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/glam/swizzles/vec2_impl.rs.html#8">Source</a><a href="#associatedtype.Vec4-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Vec4" class="associatedtype">Vec4</a> = <a class="struct" href="../struct.Vec4.html" title="struct bevy_math::Vec4">Vec4</a></h4></section></div></details></div><script src="../../trait.impl/glam/swizzles/vec_traits/trait.Vec2Swizzles.js" data-ignore-extern-crates="glam" async></script></section></div></main></body></html>