|
|
<!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 `Quaternion` struct in crate `cgmath`."><meta name="keywords" content="rust, rustlang, rust-lang, Quaternion"><title>cgmath::Quaternion - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../cgmath/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Quaternion</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.s">s</a><a href="#structfield.v">v</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.cast">cast</a><a href="#method.conjugate">conjugate</a><a href="#method.from_arc">from_arc</a><a href="#method.from_sv">from_sv</a><a href="#method.is_finite">is_finite</a><a href="#method.new">new</a><a href="#method.nlerp">nlerp</a><a href="#method.slerp">slerp</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-AbsDiffEq%3CQuaternion%3CS%3E%3E">AbsDiffEq<Quaternion<S>></a><a href="#impl-Add%3C%26%27a%20Quaternion%3CS%3E%3E">Add<&'a Quaternion<S>></a><a href="#impl-Add%3CQuaternion%3CS%3E%3E">Add<Quaternion<S>></a><a href="#impl-AddAssign%3CQuaternion%3CS%3E%3E">AddAssign<Quaternion<S>></a><a href="#impl-AsMut%3C%5BS%3B%204%5D%3E">AsMut<[S; 4]></a><a href="#impl-AsMut%3C(S%2C%20S%2C%20S%2C%20S)%3E">AsMut<(S, S, S, S)></a><a href="#impl-AsRef%3C%5BS%3B%204%5D%3E">AsRef<[S; 4]></a><a href="#impl-AsRef%3C(S%2C%20S%2C%20S%2C%20S)%3E">AsRef<(S, S, S, S)></a><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Distribution%3CQuaternion%3CS%3E%3E">Distribution<Quaternion<S>></a><a href="#impl-Div%3C%26%27a%20Quaternion%3Cf32%3E%3E">Div<&'a Quaternion<f32>></a><a href="#impl-Div%3C%26%27a%20Quaternion%3Cf64%3E%3E">Div<&'a Quaternion<f64>></a><a href="#impl-Div%3CQuaternion%3Cf32%3E%3E">Div<Quaternion<f32>></a><a href="#impl-Div%3CQuaternion%3Cf64%3E%3E">Div<Quaternion<f64>></a><a href="#impl-Div%3CS%3E">Div<S></a><a href="#impl-DivAssign%3CS%3E">DivAssign<S></a><a href="#impl-From%3C%26%27a%20%5BS%3B%204%5D%3E">From<&'a [S; 4]></a><a href="#impl-From%3C%26%27a%20(S%2C%20S%2C%20S%2C%20S)%3E">From<&'a (S, S, S, S)></a><a href="#impl-From%3C%26%27a%20mut%20%5BS%3B%204%5D%3E">From<&'a mut [S; 4]></a><a href="#impl-From%3C%26%27a%20mut%20(S%2C%20S%2C%20S%2C%20S)%3E">From<&'a mut (S, S, S, S)></a><a href="#impl-From%3C%5BS%3B%204%5D%3E">From<[S; 4]></a><a href="#impl-From%3C(S%2C%20S%2C%20S%2C%20S)%3E">From<(S, S, S, S)></a><a href="#impl-From%3CBasis3%3CS%3E%3E">From<Basis3<S>></a><a href="#impl-From%3CEuler%3CA%3E%3E">From<Euler<A>></a><a href="#impl-From%3CMatrix3%3CS%3E%3E">From<Matrix3<S>></a><a href="#impl-From%3CQuaternion%3CS%3E%3E">From<Quaternion<S>></a><a href="#impl-Index%3CRange%3Cusize%3E%3E">Index<Range<usize>></a><a href="#impl-Index%3CRangeFrom%3Cusize%3E%3E">Index<RangeFrom<usize>></a><a href="#impl-Index%3CRangeFull%3E">Index<RangeFull></a><a href="#impl-Index%3CRangeTo%3Cusize%3E%3E">Index<RangeTo<usize>></a><a href="#impl-Index%3Cusize%3E">Index<usize></a><a href="#impl-IndexMut%3CRange%3Cusize%3E%3E">IndexMut<Range<usize>></a><a href="#impl-IndexMut%3CRangeFrom%3Cusize%3E%3E">IndexMut<RangeFrom<usize>></a><a href="#impl-IndexMut%3CRangeFull%3E">IndexMut<RangeFull></a><a href="#impl-IndexMut%3CRangeTo%3Cusize%3E%3E">IndexMut<RangeTo<usize>></a><a href="#impl-IndexMut%3Cusize%3E">IndexMut<usize></a><a href="#impl-InnerSpace">InnerSpace</a><a href="#impl-Into%3C%5BS%3B%204%5D%3E">Into<[S; 4]></a><a href="#impl-Into%3C(S%2C%20S%2C%20S%2C%20S)%3E">Into<(S, S, S, S)></a><a href="#impl-MetricSpace">MetricSpace</a><a href="#impl-Mul%3C%26%27a%20Quaternion%3CS%3E%3E">Mul<&'a Quaternion<S>></a><a href="#impl-Mul%3C%26%27a%20Quaternion%3Cf32%3E%3E">Mul<&'a Quaternion<f32>></a><a href="#impl-Mul%3C%26%27a%20Quaternion%3Cf64%3E%3E">Mul<&'a Quaternion<f64>></a><a href="#impl-Mul%3C%26%27a%20Vector3%3CS%3E%3E">Mul<&'a Vector3<S>></a><a href="#impl-Mul%3CQuaternion%3CS%3E%3E">Mul<Quaternion<S>></a><a href="#impl-Mul%3CQuaternion%3Cf32%3E%3E">Mul<Quaternion<f32>></a><a href="#impl-Mul%3CQuaternion%3Cf64%3E%3E">Mul<Quaternion<f64>></a><a href="#impl-Mul%3CS%3E">Mul<S></a><a href="#impl-Mul%3CVector3%3CS%3E%3E">Mul<Vector3<S>></a><a href="#impl-MulAssign%3CS%3E">MulAssign<S></a><a href="#impl-Neg">Neg</a><a href="#impl-One">One</a><a href="#impl-PartialEq%3CQuaternion%3CS%3E%3E">PartialEq<Quaternion<S>></a><a href="#impl-Product%3C%26%27a%20Quaternion%3CS%3E%3E">Product<&'a Quaternion<S>></a><a href="#impl-Product%3CQuaternion%3CS%3E%3E">Product<Quaternion<S>></a><a href="#impl-RelativeEq%3CQuaternion%3CS%3E%3E">RelativeEq<Quaternion<S>></a><a href="#impl-Rem%3CS%3E">Rem<S></a><a href="#impl-RemAssign%3CS%3E">RemAssign<S></a><a href="#impl-Rotation%3CPoint3%3CS%3E%3E">Rotation<Point3<S>></a><a href="#impl-Rotation3%3CS%3E">Rotation3<S></a><a href="#impl-Sub%3C%26%27a%20Quaternion%3CS%3E%3E">Sub<&'a Quaternion<S>></a><a href="#impl-Sub%3CQuaternion%3CS%3E%3E">Sub<Quaternion<S>></a><a href="#impl-SubAssign%3CQuaternion%3CS%3E%3E">SubAssign<Quaternion<S>></a><a href="#impl-Sum%3C%26%27a%20Quaternion%3CS%3E%3E">Sum<&'a Quaternion<S>></a><a href="#impl-Sum%3CQuaternion%3CS%3E%3E">Sum<Quaternion<S>></a><a href="#impl-UlpsEq%3CQuaternion%3CS%3E%3E">UlpsEq<Quaternion<S>></a><a href="#impl-VectorSpace">VectorSpace</a><a href="#impl-Zero">Zero</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-NumAssignOps%3CRhs%3E">NumAssignOps<Rhs></a><a href="#impl-NumOps%3CRhs%2C%20Output%3E">NumOps<Rhs, Output></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>cgmath</a></p><script>window.sidebarCurrent = {name: 'Quaternion', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/cgmath/quaternion.rs.html#48-53' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>cgmath</a>::<wbr><a class="struct" href=''>Quaternion</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'><span class="docblock attributes top-attr">#[repr(C)]
|
|
|
</span>pub struct Quaternion<S> {
|
|
|
pub s: S,
|
|
|
pub v: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>,
|
|
|
}</pre></div><div class='docblock'><p>A <a href="https://en.wikipedia.org/wiki/Quaternion">quaternion</a> in scalar/vector
|
|
|
form.</p>
|
|
|
<p>This type is marked as <code>#[repr(C)]</code>.</p>
|
|
|
</div><h2 id='fields' class='fields small-section-header'>
|
|
|
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.s" class="structfield small-section-header"><a href="#structfield.s" class="anchor field"></a><code id="s.v">s: S</code></span><div class='docblock'><p>The scalar part of the quaternion.</p>
|
|
|
</div><span id="structfield.v" class="structfield small-section-header"><a href="#structfield.v" class="anchor field"></a><code id="v.v">v: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code></span><div class='docblock'><p>The vector part of the quaternion.</p>
|
|
|
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl<S> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#79-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub const fn <a href='#method.new' class='fnname'>new</a>(w: S, xi: S, yj: S, zk: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#83-85' title='goto source code'>[src]</a></h4><div class='docblock'><p>Construct a new quaternion from one scalar component and three
|
|
|
imaginary components.</p>
|
|
|
</div><h4 id='method.from_sv' class="method"><code id='from_sv.v'>pub const fn <a href='#method.from_sv' class='fnname'>from_sv</a>(s: S, v: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='docblock'><p>Construct a new quaternion from a scalar and a vector.</p>
|
|
|
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#94-183' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_arc' class="method"><code id='from_arc.v'>pub fn <a href='#method.from_arc' class='fnname'>from_arc</a>(<br> src: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>, <br> dst: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>, <br> fallback: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>><br>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#103-124' title='goto source code'>[src]</a></h4><div class='docblock'><p>Construct a new quaternion as a closest arc between two vectors</p>
|
|
|
<p>Return the closest rotation that turns <code>src</code> vector into <code>dst</code>.</p>
|
|
|
<ul>
|
|
|
<li>[Related StackOverflow question]
|
|
|
(http://stackoverflow.com/questions/1171849/finding-quaternion-representing-the-rotation-from-one-vector-to-another)</li>
|
|
|
<li>[Ogre implementation for normalized vectors]
|
|
|
(https://bitbucket.org/sinbad/ogre/src/9db75e3ba05c/OgreMain/include/OgreVector3.h?fileviewer=file-view-default#cl-651)</li>
|
|
|
</ul>
|
|
|
</div><h4 id='method.conjugate' class="method"><code id='conjugate.v'>pub fn <a href='#method.conjugate' class='fnname'>conjugate</a>(self) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock'><p>The conjugate of the quaternion.</p>
|
|
|
</div><h4 id='method.nlerp' class="method"><code id='nlerp.v'>pub fn <a href='#method.nlerp' class='fnname'>nlerp</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>, amount: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#133-135' title='goto source code'>[src]</a></h4><div class='docblock'><p>Do a normalized linear interpolation with <code>other</code>, by <code>amount</code>.</p>
|
|
|
</div><h4 id='method.slerp' class="method"><code id='slerp.v'>pub fn <a href='#method.slerp' class='fnname'>slerp</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>, amount: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#153-178' title='goto source code'>[src]</a></h4><div class='docblock'><p>Spherical Linear Interpolation</p>
|
|
|
<p>Return the spherical linear interpolation between the quaternion and
|
|
|
<code>other</code>. Both quaternions should be normalized first.</p>
|
|
|
<h1 id="performance-notes" class="section-header"><a href="#performance-notes">Performance notes</a></h1>
|
|
|
<p>The <code>acos</code> operation used in <code>slerp</code> is an expensive operation, so
|
|
|
unless your quaternions are far away from each other it's generally
|
|
|
more advisable to use <code>nlerp</code> when you know your rotations are going
|
|
|
to be small.</p>
|
|
|
<ul>
|
|
|
<li>[Understanding Slerp, Then Not Using It]
|
|
|
(http://number-none.com/product/Understanding%20Slerp,%20Then%20Not%20Using%20It/)</li>
|
|
|
<li>[Arcsynthesis OpenGL tutorial]
|
|
|
(http://www.arcsynthesis.org/gltut/Positioning/Tut08%20Interpolation.html)</li>
|
|
|
</ul>
|
|
|
</div><h4 id='method.is_finite' class="method"><code id='is_finite.v'>pub fn <a href='#method.is_finite' class='fnname'>is_finite</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#180-182' title='goto source code'>[src]</a></h4></div><h3 id='impl-2' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-2' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#245-258' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cast' class="method"><code id='cast.v'>pub fn <a href='#method.cast' class='fnname'>cast</a><T: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><T>></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#247-257' title='goto source code'>[src]</a></h4><div class='docblock'><p>Component-wise casting to another type.</p>
|
|
|
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-VectorSpace' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/prelude/trait.VectorSpace.html" title="trait cgmath::prelude::VectorSpace">VectorSpace</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-VectorSpace' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#232-234' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Scalar' class="type"><code id='Scalar.t'>type <a href='../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar' class="type">Scalar</a> = S</code></h4><div class='docblock'><p>The associated scalar.</p>
|
|
|
</div><h4 id='method.lerp' class="method hidden"><code id='lerp.v'>fn <a href='../cgmath/prelude/trait.VectorSpace.html#method.lerp' class='fnname'>lerp</a>(self, other: Self, amount: Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>) -> Self</code><a class='srclink' href='../src/cgmath/structure.rs.html#188-190' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the result of linearly interpolating the vector towards <code>other</code> by the specified amount. <a href="../cgmath/prelude/trait.VectorSpace.html#method.lerp">Read more</a></p>
|
|
|
</div></div><h3 id='impl-MetricSpace' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/prelude/trait.MetricSpace.html" title="trait cgmath::prelude::MetricSpace">MetricSpace</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-MetricSpace' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#236-243' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Metric' class="type"><code id='Metric.t'>type <a href='../cgmath/prelude/trait.MetricSpace.html#associatedtype.Metric' class="type">Metric</a> = S</code></h4><div class='docblock'><p>The metric to be returned by the <code>distance</code> function.</p>
|
|
|
</div><h4 id='method.distance2' class="method hidden"><code id='distance2.v'>fn <a href='../cgmath/prelude/trait.MetricSpace.html#tymethod.distance2' class='fnname'>distance2</a>(self, other: Self) -> S</code><a class='srclink' href='../src/cgmath/quaternion.rs.html#240-242' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the squared distance. <a href="../cgmath/prelude/trait.MetricSpace.html#tymethod.distance2">Read more</a></p>
|
|
|
</div><h4 id='method.distance' class="method hidden"><code id='distance.v'>fn <a href='../cgmath/prelude/trait.MetricSpace.html#method.distance' class='fnname'>distance</a>(self, other: Self) -> Self::<a class="type" href="../cgmath/prelude/trait.MetricSpace.html#associatedtype.Metric" title="type cgmath::prelude::MetricSpace::Metric">Metric</a></code><a class='srclink' href='../src/cgmath/structure.rs.html#208-210' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The distance between two values.</p>
|
|
|
</div></div><h3 id='impl-InnerSpace' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/prelude/trait.InnerSpace.html" title="trait cgmath::prelude::InnerSpace">InnerSpace</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-InnerSpace' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#261-266' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.dot' class="method hidden"><code id='dot.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#tymethod.dot' class='fnname'>dot</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> S</code><a class='srclink' href='../src/cgmath/quaternion.rs.html#263-265' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Vector dot (or inner) product.</p>
|
|
|
</div><h4 id='method.is_perpendicular' class="method hidden"><code id='is_perpendicular.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#method.is_perpendicular' class='fnname'>is_perpendicular</a>(self, other: Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/structure.rs.html#234-236' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>true</code> if the vector is perpendicular (at right angles) to the other vector. <a href="../cgmath/prelude/trait.InnerSpace.html#method.is_perpendicular">Read more</a></p>
|
|
|
</div><h4 id='method.magnitude2' class="method hidden"><code id='magnitude2.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#method.magnitude2' class='fnname'>magnitude2</a>(self) -> Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a></code><a class='srclink' href='../src/cgmath/structure.rs.html#244-246' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the squared magnitude. <a href="../cgmath/prelude/trait.InnerSpace.html#method.magnitude2">Read more</a></p>
|
|
|
</div><h4 id='method.magnitude' class="method hidden"><code id='magnitude.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#method.magnitude' class='fnname'>magnitude</a>(self) -> Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a></code><a class='srclink' href='../src/cgmath/structure.rs.html#250-252' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The distance from the tail to the tip of the vector.</p>
|
|
|
</div><h4 id='method.angle' class="method hidden"><code id='angle.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#method.angle' class='fnname'>angle</a>(self, other: Self) -> <a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>></code><a class='srclink' href='../src/cgmath/structure.rs.html#255-257' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the angle between two vectors in radians.</p>
|
|
|
</div><h4 id='method.normalize' class="method hidden"><code id='normalize.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#method.normalize' class='fnname'>normalize</a>(self) -> Self</code><a class='srclink' href='../src/cgmath/structure.rs.html#261-263' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a vector with the same direction, but with a magnitude of <code>1</code>.</p>
|
|
|
</div><h4 id='method.normalize_to' class="method hidden"><code id='normalize_to.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#method.normalize_to' class='fnname'>normalize_to</a>(self, magnitude: Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>) -> Self</code><a class='srclink' href='../src/cgmath/structure.rs.html#267-269' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a vector with the same direction and a given magnitude.</p>
|
|
|
</div><h4 id='method.project_on' class="method hidden"><code id='project_on.v'>fn <a href='../cgmath/prelude/trait.InnerSpace.html#method.project_on' class='fnname'>project_on</a>(self, other: Self) -> Self</code><a class='srclink' href='../src/cgmath/structure.rs.html#275-277' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the vector projection of the current inner space projected onto the supplied argument. <a href="../cgmath/prelude/trait.InnerSpace.html#method.project_on">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Rotation%3CPoint3%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/prelude/trait.Rotation.html" title="trait cgmath::prelude::Rotation">Rotation</a><<a class="struct" href="../cgmath/struct.Point3.html" title="struct cgmath::Point3">Point3</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Rotation%3CPoint3%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#700-741' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.look_at' class="method hidden"><code id='look_at.v'>fn <a href='../cgmath/prelude/trait.Rotation.html#tymethod.look_at' class='fnname'>look_at</a>(dir: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>, up: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#702-704' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create a rotation to a given direction with an 'up' vector.</p>
|
|
|
</div><h4 id='method.between_vectors' class="method hidden"><code id='between_vectors.v'>fn <a href='../cgmath/prelude/trait.Rotation.html#tymethod.between_vectors' class='fnname'>between_vectors</a>(a: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>, b: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#707-730' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create a shortest rotation to transform vector 'a' into 'b'. Both given vectors are assumed to have unit length. <a href="../cgmath/prelude/trait.Rotation.html#tymethod.between_vectors">Read more</a></p>
|
|
|
</div><h4 id='method.rotate_vector' class="method hidden"><code id='rotate_vector.v'>fn <a href='../cgmath/prelude/trait.Rotation.html#tymethod.rotate_vector' class='fnname'>rotate_vector</a>(&self, vec: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#733-735' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rotate a vector using this rotation.</p>
|
|
|
</div><h4 id='method.invert' class="method hidden"><code id='invert.v'>fn <a href='../cgmath/prelude/trait.Rotation.html#tymethod.invert' class='fnname'>invert</a>(&self) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#738-740' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create a new rotation which "un-does" this rotation. That is, <code>r * r.invert()</code> is the identity. <a href="../cgmath/prelude/trait.Rotation.html#tymethod.invert">Read more</a></p>
|
|
|
</div><h4 id='method.rotate_point' class="method hidden"><code id='rotate_point.v'>fn <a href='../cgmath/prelude/trait.Rotation.html#method.rotate_point' class='fnname'>rotate_point</a>(&self, point: P) -> P</code><a class='srclink' href='../src/cgmath/rotation.rs.html#55-57' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rotate a point using this rotation, by converting it to its representation as a vector. <a href="../cgmath/prelude/trait.Rotation.html#method.rotate_point">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Rotation3%3CS%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/prelude/trait.Rotation3.html" title="trait cgmath::prelude::Rotation3">Rotation3</a><S> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Rotation3%3CS%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#743-749' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_axis_angle' class="method hidden"><code id='from_axis_angle.v'>fn <a href='../cgmath/prelude/trait.Rotation3.html#tymethod.from_axis_angle' class='fnname'>from_axis_angle</a><A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><S>>>(axis: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>, angle: A) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#745-748' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create a rotation using an angle around a given axis. <a href="../cgmath/prelude/trait.Rotation3.html#tymethod.from_axis_angle">Read more</a></p>
|
|
|
</div><h4 id='method.from_angle_x' class="method hidden"><code id='from_angle_x.v'>fn <a href='../cgmath/prelude/trait.Rotation3.html#method.from_angle_x' class='fnname'>from_angle_x</a><A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><S>>>(theta: A) -> Self</code><a class='srclink' href='../src/cgmath/rotation.rs.html#83-85' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create a rotation from an angle around the <code>x</code> axis (pitch).</p>
|
|
|
</div><h4 id='method.from_angle_y' class="method hidden"><code id='from_angle_y.v'>fn <a href='../cgmath/prelude/trait.Rotation3.html#method.from_angle_y' class='fnname'>from_angle_y</a><A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><S>>>(theta: A) -> Self</code><a class='srclink' href='../src/cgmath/rotation.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create a rotation from an angle around the <code>y</code> axis (yaw).</p>
|
|
|
</div><h4 id='method.from_angle_z' class="method hidden"><code id='from_angle_z.v'>fn <a href='../cgmath/prelude/trait.Rotation3.html#method.from_angle_z' class='fnname'>from_angle_z</a><A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><S>>>(theta: A) -> Self</code><a class='srclink' href='../src/cgmath/rotation.rs.html#95-97' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create a rotation from an angle around the <code>z</code> axis (roll).</p>
|
|
|
</div></div><h3 id='impl-Into%3C%5BS%3B%204%5D%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Into%3C%5BS%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#751-758' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#753-757' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-Into%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Into%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#795-805' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into-1' class="method hidden"><code id='into.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#797-804' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-AsMut%3C%5BS%3B%204%5D%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-AsMut%3C%5BS%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#767-772' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_mut' class="method hidden"><code id='as_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html#tymethod.as_mut' class='fnname'>as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#769-771' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-AsMut%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-AsMut%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#814-819' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_mut-1' class="method hidden"><code id='as_mut.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html#tymethod.as_mut' class='fnname'>as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#816-818' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-Clone' class='impl'><code class='in-band'>impl<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
|
|
</div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
|
|
</div></div><h3 id='impl-AsRef%3C%5BS%3B%204%5D%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-AsRef%3C%5BS%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#760-765' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref' class="method hidden"><code id='as_ref.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#762-764' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-AsRef%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-AsRef%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#807-812' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref-1' class="method hidden"><code id='as_ref.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#809-811' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-PartialEq%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-PartialEq%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
|
|
</div><h4 id='method.ne' class="method hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
|
|
</div></div><h3 id='impl-From%3CMatrix3%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3CMatrix3%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/matrix.rs.html#1475-1516' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(mat: <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/matrix.rs.html#1477-1515' title='goto source code'>[src]</a></h4><div class='docblock'><p>Convert the matrix to a quaternion</p>
|
|
|
</div></div><h3 id='impl-From%3CEuler%3CA%3E%3E' class='impl'><code class='in-band'>impl<A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a><A>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>> <span class="where fmt-newline">where<br> A: <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><<A as <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>>::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>>>, </span></code><a href='#impl-From%3CEuler%3CA%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#287-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(src: <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a><A>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#291-308' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a><S></code><a href='#impl-From%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#634-660' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(quat: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#636-659' title='goto source code'>[src]</a></h4><div class='docblock'><p>Convert the quaternion to a 3 x 3 rotation matrix.</p>
|
|
|
</div></div><h3 id='impl-From%3CQuaternion%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a><S></code><a href='#impl-From%3CQuaternion%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#662-689' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(quat: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#664-688' title='goto source code'>[src]</a></h4><div class='docblock'><p>Convert the quaternion to a 4 x 4 rotation matrix.</p>
|
|
|
</div></div><h3 id='impl-From%3CQuaternion%3CS%3E%3E-2' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Basis3.html" title="struct cgmath::Basis3">Basis3</a><S></code><a href='#impl-From%3CQuaternion%3CS%3E%3E-2' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#693-698' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-4' class="method hidden"><code id='from.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(quat: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Basis3.html" title="struct cgmath::Basis3">Basis3</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#695-697' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3C%5BS%3B%204%5D%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3C%5BS%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#774-779' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-5' class="method hidden"><code id='from.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(v: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#776-778' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3C%26%27a%20%5BS%3B%204%5D%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3C%26%27a%20%5BS%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#781-786' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-6' class="method hidden"><code id='from.v-6'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(v: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>) -> &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#783-785' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3C%26%27a%20mut%20%5BS%3B%204%5D%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>> for &'a mut <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3C%26%27a%20mut%20%5BS%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#788-793' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-7' class="method hidden"><code id='from.v-7'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(v: &'a mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>) -> &'a mut <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#790-792' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3C(S%2C%20S%2C%20S%2C%20S)%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#821-828' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-8' class="method hidden"><code id='from.v-8'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(v: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#823-827' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3C%26%27a%20(S%2C%20S%2C%20S%2C%20S)%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3C%26%27a%20(S%2C%20S%2C%20S%2C%20S)%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#830-835' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-9' class="method hidden"><code id='from.v-9'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(v: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>) -> &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#832-834' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3C%26%27a%20mut%20(S%2C%20S%2C%20S%2C%20S)%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for &'a mut <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3C%26%27a%20mut%20(S%2C%20S%2C%20S%2C%20S)%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#837-842' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-10' class="method hidden"><code id='from.v-10'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(v: &'a mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>S, S, S, S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>) -> &'a mut <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#839-841' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3CQuaternion%3CS%3E%3E-3' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a><<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><S>></code><a href='#impl-From%3CQuaternion%3CS%3E%3E-3' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#103-143' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-11' class="method hidden"><code id='from.v-11'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(src: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a><<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a><S>></code><a class='srclink' href='../src/cgmath/euler.rs.html#104-142' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3CBasis3%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../cgmath/struct.Basis3.html" title="struct cgmath::Basis3">Basis3</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-From%3CBasis3%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/rotation.rs.html#307-312' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-12' class="method hidden"><code id='from.v-12'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(b: <a class="struct" href="../cgmath/struct.Basis3.html" title="struct cgmath::Basis3">Basis3</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/rotation.rs.html#309-311' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Add%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Add%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#66-72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output' class="type"><code id='Output.t'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
|
|
|
</div><h4 id='method.add' class="method hidden"><code id='add.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#69-71' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Add%3C%26%27a%20Quaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Add%3C%26%27a%20Quaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#74-80' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-1' class="type"><code id='Output.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
|
|
|
</div><h4 id='method.add-1' class="method hidden"><code id='add.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#77-79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Add%3CQuaternion%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Add%3CQuaternion%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#82-88' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-2' class="type"><code id='Output.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
|
|
|
</div><h4 id='method.add-2' class="method hidden"><code id='add.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Add%3C%26%27a%20Quaternion%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, 'b, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for &'b <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Add%3C%26%27a%20Quaternion%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#90-96' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-3' class="type"><code id='Output.t-3'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
|
|
|
</div><h4 id='method.add-3' class="method hidden"><code id='add.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#93-95' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Sub%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Sub%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#66-72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-4' class="type"><code id='Output.t-4'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
|
|
|
</div><h4 id='method.sub' class="method hidden"><code id='sub.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#69-71' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Sub%3C%26%27a%20Quaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Sub%3C%26%27a%20Quaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#74-80' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-5' class="type"><code id='Output.t-5'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
|
|
|
</div><h4 id='method.sub-1' class="method hidden"><code id='sub.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#77-79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Sub%3CQuaternion%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Sub%3CQuaternion%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#82-88' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-6' class="type"><code id='Output.t-6'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
|
|
|
</div><h4 id='method.sub-2' class="method hidden"><code id='sub.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Sub%3C%26%27a%20Quaternion%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, 'b, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for &'b <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Sub%3C%26%27a%20Quaternion%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#90-96' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-7' class="type"><code id='Output.t-7'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
|
|
|
</div><h4 id='method.sub-3' class="method hidden"><code id='sub.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#93-95' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CS%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><S> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3CS%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#46-52' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-8' class="type"><code id='Output.t-8'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul' class="method hidden"><code id='mul.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#49-51' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CS%3E-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><S> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3CS%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#54-60' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-9' class="type"><code id='Output.t-9'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-1' class="method hidden"><code id='mul.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#57-59' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CVector3%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3CVector3%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#66-72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-10' class="type"><code id='Output.t-10'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-2' class="method hidden"><code id='mul.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#69-71' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3C%26%27a%20Vector3%3CS%3E%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&'a <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3C%26%27a%20Vector3%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#74-80' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-11' class="type"><code id='Output.t-11'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-3' class="method hidden"><code id='mul.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#77-79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CVector3%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3CVector3%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#82-88' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-12' class="type"><code id='Output.t-12'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-4' class="method hidden"><code id='mul.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3C%26%27a%20Vector3%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, 'b, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&'a <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>> for &'b <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3C%26%27a%20Vector3%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#90-96' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-13' class="type"><code id='Output.t-13'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-5' class="method hidden"><code id='mul.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>) -> <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#93-95' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#66-72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-14' class="type"><code id='Output.t-14'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-6' class="method hidden"><code id='mul.v-6'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#69-71' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3C%26%27a%20Quaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3C%26%27a%20Quaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#74-80' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-15' class="type"><code id='Output.t-15'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-7' class="method hidden"><code id='mul.v-7'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#77-79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CQuaternion%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3CQuaternion%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#82-88' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-16' class="type"><code id='Output.t-16'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-8' class="method hidden"><code id='mul.v-8'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3C%26%27a%20Quaternion%3CS%3E%3E-1' class='impl'><code class='in-band'>impl<'a, 'b, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for &'b <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Mul%3C%26%27a%20Quaternion%3CS%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#90-96' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-17' class="type"><code id='Output.t-17'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-9' class="method hidden"><code id='mul.v-9'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#93-95' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CQuaternion%3Cf32%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code><a href='#impl-Mul%3CQuaternion%3Cf32%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#102-108' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-18' class="type"><code id='Output.t-18'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-10' class="method hidden"><code id='mul.v-10'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#105-107' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3C%26%27a%20Quaternion%3Cf32%3E%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code><a href='#impl-Mul%3C%26%27a%20Quaternion%3Cf32%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#110-116' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-19' class="type"><code id='Output.t-19'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-11' class="method hidden"><code id='mul.v-11'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#113-115' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3CQuaternion%3Cf64%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a href='#impl-Mul%3CQuaternion%3Cf64%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#102-108' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-20' class="type"><code id='Output.t-20'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-12' class="method hidden"><code id='mul.v-12'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#105-107' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Mul%3C%26%27a%20Quaternion%3Cf64%3E%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a href='#impl-Mul%3C%26%27a%20Quaternion%3Cf64%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#110-116' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-21' class="type"><code id='Output.t-21'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
|
|
|
</div><h4 id='method.mul-13' class="method hidden"><code id='mul.v-13'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#113-115' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Div%3CS%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><S> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Div%3CS%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#46-52' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-22' class="type"><code id='Output.t-22'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
|
|
|
</div><h4 id='method.div' class="method hidden"><code id='div.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#49-51' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>/</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Div%3CS%3E-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><S> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Div%3CS%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#54-60' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-23' class="type"><code id='Output.t-23'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
|
|
|
</div><h4 id='method.div-1' class="method hidden"><code id='div.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#57-59' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>/</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Div%3CQuaternion%3Cf32%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code><a href='#impl-Div%3CQuaternion%3Cf32%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#102-108' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-24' class="type"><code id='Output.t-24'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
|
|
|
</div><h4 id='method.div-2' class="method hidden"><code id='div.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#105-107' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>/</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Div%3C%26%27a%20Quaternion%3Cf32%3E%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code><a href='#impl-Div%3C%26%27a%20Quaternion%3Cf32%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#110-116' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-25' class="type"><code id='Output.t-25'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
|
|
|
</div><h4 id='method.div-3' class="method hidden"><code id='div.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#113-115' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>/</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Div%3CQuaternion%3Cf64%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a href='#impl-Div%3CQuaternion%3Cf64%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#102-108' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-26' class="type"><code id='Output.t-26'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
|
|
|
</div><h4 id='method.div-4' class="method hidden"><code id='div.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#105-107' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>/</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Div%3C%26%27a%20Quaternion%3Cf64%3E%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a href='#impl-Div%3C%26%27a%20Quaternion%3Cf64%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#110-116' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-27' class="type"><code id='Output.t-27'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></h4><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
|
|
|
</div><h4 id='method.div-5' class="method hidden"><code id='div.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code><a class='srclink' href='../src/cgmath/macros.rs.html#113-115' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>/</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Rem%3CS%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><S> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Rem%3CS%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#46-52' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-28' class="type"><code id='Output.t-28'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
|
|
|
</div><h4 id='method.rem' class="method hidden"><code id='rem.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#49-51' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>%</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Rem%3CS%3E-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><S> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Rem%3CS%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#54-60' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-29' class="type"><code id='Output.t-29'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
|
|
|
</div><h4 id='method.rem-1' class="method hidden"><code id='rem.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: S) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#57-59' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>%</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Neg' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Neg' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#26-32' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-30' class="type"><code id='Output.t-30'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
|
|
|
</div><h4 id='method.neg' class="method hidden"><code id='neg.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html#tymethod.neg' class='fnname'>neg</a>(self) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#29-31' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the unary <code>-</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Neg-1' class='impl'><code class='in-band'>impl<'a, S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Neg-1' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#34-40' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-31' class="type"><code id='Output.t-31'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
|
|
|
</div><h4 id='method.neg-1' class="method hidden"><code id='neg.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html#tymethod.neg' class='fnname'>neg</a>(self) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/macros.rs.html#37-39' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the unary <code>-</code> operation.</p>
|
|
|
</div></div><h3 id='impl-AddAssign%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a><S>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-AddAssign%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#124-127' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.add_assign' class="method hidden"><code id='add_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html#tymethod.add_assign' class='fnname'>add_assign</a>(&mut self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>)</code><a class='srclink' href='../src/cgmath/macros.rs.html#126' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+=</code> operation.</p>
|
|
|
</div></div><h3 id='impl-SubAssign%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a><S>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-SubAssign%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#124-127' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.sub_assign' class="method hidden"><code id='sub_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign' class='fnname'>sub_assign</a>(&mut self, other: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>)</code><a class='srclink' href='../src/cgmath/macros.rs.html#126' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-=</code> operation.</p>
|
|
|
</div></div><h3 id='impl-MulAssign%3CS%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a><S>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a><S> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-MulAssign%3CS%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#124-127' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.mul_assign' class="method hidden"><code id='mul_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign' class='fnname'>mul_assign</a>(&mut self, scalar: S)</code><a class='srclink' href='../src/cgmath/macros.rs.html#126' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*=</code> operation.</p>
|
|
|
</div></div><h3 id='impl-DivAssign%3CS%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a><S>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a><S> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-DivAssign%3CS%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#124-127' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.div_assign' class="method hidden"><code id='div_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.DivAssign.html#tymethod.div_assign' class='fnname'>div_assign</a>(&mut self, scalar: S)</code><a class='srclink' href='../src/cgmath/macros.rs.html#126' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>/=</code> operation.</p>
|
|
|
</div></div><h3 id='impl-RemAssign%3CS%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a><S>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a><S> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-RemAssign%3CS%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/macros.rs.html#124-127' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.rem_assign' class="method hidden"><code id='rem_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign' class='fnname'>rem_assign</a>(&mut self, scalar: S)</code><a class='srclink' href='../src/cgmath/macros.rs.html#126' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>%=</code> operation.</p>
|
|
|
</div></div><h3 id='impl-Index%3Cusize%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Index%3Cusize%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#846-853' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-32' class="type"><code id='Output.t-32'>type <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output' class="type">Output</a> = S</code></h4><div class='docblock'><p>The returned type after indexing.</p>
|
|
|
</div><h4 id='method.index' class="method hidden"><code id='index.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index' class='fnname'>index</a><'a>(&'a self, i: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>S</code><a class='srclink' href='../src/cgmath/quaternion.rs.html#850-852' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-Index%3CRange%3Cusize%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Index%3CRange%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#846-853' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-33' class="type"><code id='Output.t-33'>type <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><div class='docblock'><p>The returned type after indexing.</p>
|
|
|
</div><h4 id='method.index-1' class="method hidden"><code id='index.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index' class='fnname'>index</a><'a>(&'a self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#850-852' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-Index%3CRangeTo%3Cusize%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeTo.html" title="struct core::ops::range::RangeTo">RangeTo</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Index%3CRangeTo%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#846-853' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-34' class="type"><code id='Output.t-34'>type <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><div class='docblock'><p>The returned type after indexing.</p>
|
|
|
</div><h4 id='method.index-2' class="method hidden"><code id='index.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index' class='fnname'>index</a><'a>(&'a self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeTo.html" title="struct core::ops::range::RangeTo">RangeTo</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#850-852' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-Index%3CRangeFrom%3Cusize%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFrom.html" title="struct core::ops::range::RangeFrom">RangeFrom</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Index%3CRangeFrom%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#846-853' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-35' class="type"><code id='Output.t-35'>type <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><div class='docblock'><p>The returned type after indexing.</p>
|
|
|
</div><h4 id='method.index-3' class="method hidden"><code id='index.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index' class='fnname'>index</a><'a>(&'a self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFrom.html" title="struct core::ops::range::RangeFrom">RangeFrom</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#850-852' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-Index%3CRangeFull%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Index%3CRangeFull%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#846-853' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-36' class="type"><code id='Output.t-36'>type <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>S<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><div class='docblock'><p>The returned type after indexing.</p>
|
|
|
</div><h4 id='method.index-4' class="method hidden"><code id='index.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index' class='fnname'>index</a><'a>(&'a self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#850-852' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-IndexMut%3Cusize%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-IndexMut%3Cusize%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#855-860' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.index_mut' class="method hidden"><code id='index_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut' class='fnname'>index_mut</a><'a>(&'a mut self, i: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>S</code><a class='srclink' href='../src/cgmath/quaternion.rs.html#857-859' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the mutable indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-IndexMut%3CRange%3Cusize%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-IndexMut%3CRange%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#855-860' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.index_mut-1' class="method hidden"><code id='index_mut.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut' class='fnname'>index_mut</a><'a>(&'a mut self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a mut [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#857-859' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the mutable indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-IndexMut%3CRangeTo%3Cusize%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeTo.html" title="struct core::ops::range::RangeTo">RangeTo</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-IndexMut%3CRangeTo%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#855-860' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.index_mut-2' class="method hidden"><code id='index_mut.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut' class='fnname'>index_mut</a><'a>(&'a mut self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeTo.html" title="struct core::ops::range::RangeTo">RangeTo</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a mut [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#857-859' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the mutable indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-IndexMut%3CRangeFrom%3Cusize%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFrom.html" title="struct core::ops::range::RangeFrom">RangeFrom</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-IndexMut%3CRangeFrom%3Cusize%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#855-860' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.index_mut-3' class="method hidden"><code id='index_mut.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut' class='fnname'>index_mut</a><'a>(&'a mut self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFrom.html" title="struct core::ops::range::RangeFrom">RangeFrom</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a mut [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#857-859' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the mutable indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-IndexMut%3CRangeFull%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-IndexMut%3CRangeFull%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#855-860' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.index_mut-4' class="method hidden"><code id='index_mut.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut' class='fnname'>index_mut</a><'a>(&'a mut self, i: <a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a mut [S]</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#857-859' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the mutable indexing (<code>container[index]</code>) operation.</p>
|
|
|
</div></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#46' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Product%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html" title="trait core::iter::traits::accum::Product">Product</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Product%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#218-223' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.product' class="method hidden"><code id='product.v'>fn <a href='https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html#tymethod.product' class='fnname'>product</a><I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>>>(iter: I) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#220-222' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Method which takes an iterator and generates <code>Self</code> from the elements by multiplying the items. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html#tymethod.product">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Product%3C%26%27a%20Quaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<'a, S: 'a + <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html" title="trait core::iter::traits::accum::Product">Product</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Product%3C%26%27a%20Quaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#225-230' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.product-1' class="method hidden"><code id='product.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html#tymethod.product' class='fnname'>product</a><I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>>>(iter: I) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#227-229' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Method which takes an iterator and generates <code>Self</code> from the elements by multiplying the items. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html#tymethod.product">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Sum%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html" title="trait core::iter::traits::accum::Sum">Sum</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Sum%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#204-209' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.sum' class="method hidden"><code id='sum.v'>fn <a href='https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html#tymethod.sum' class='fnname'>sum</a><I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>>>(iter: I) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#206-208' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Method which takes an iterator and generates <code>Self</code> from the elements by "summing up" the items. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html#tymethod.sum">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Sum%3C%26%27a%20Quaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<'a, S: 'a + <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html" title="trait core::iter::traits::accum::Sum">Sum</a><&'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Sum%3C%26%27a%20Quaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#211-216' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.sum-1' class="method hidden"><code id='sum.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html#tymethod.sum' class='fnname'>sum</a><I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &'a <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>>>(iter: I) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#213-215' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Method which takes an iterator and generates <code>Self</code> from the elements by "summing up" the items. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html#tymethod.sum">Read more</a></p>
|
|
|
</div></div><h3 id='impl-AbsDiffEq%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/trait.AbsDiffEq.html" title="trait cgmath::AbsDiffEq">AbsDiffEq</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-AbsDiffEq%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#593-606' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Epsilon' class="type"><code id='Epsilon.t'>type <a href='../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon' class="type">Epsilon</a> = S::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a></code></h4><div class='docblock'><p>Used for specifying relative comparisons.</p>
|
|
|
</div><h4 id='method.default_epsilon' class="method hidden"><code id='default_epsilon.v'>fn <a href='../cgmath/trait.AbsDiffEq.html#tymethod.default_epsilon' class='fnname'>default_epsilon</a>() -> S::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#597-599' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The default tolerance to use when testing values that are close together. <a href="../cgmath/trait.AbsDiffEq.html#tymethod.default_epsilon">Read more</a></p>
|
|
|
</div><h4 id='method.abs_diff_eq' class="method hidden"><code id='abs_diff_eq.v'>fn <a href='../cgmath/trait.AbsDiffEq.html#tymethod.abs_diff_eq' class='fnname'>abs_diff_eq</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self, epsilon: S::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#602-605' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A test for equality that uses the absolute difference to compute the approximate equality of two numbers. <a href="../cgmath/trait.AbsDiffEq.html#tymethod.abs_diff_eq">Read more</a></p>
|
|
|
</div><h4 id='method.abs_diff_ne' class="method hidden"><code id='abs_diff_ne.v'>fn <a href='../cgmath/trait.AbsDiffEq.html#method.abs_diff_ne' class='fnname'>abs_diff_ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs, epsilon: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/approx/abs_diff_eq.rs.html#26-28' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The inverse of <code>ApproxEq::abs_diff_eq</code>.</p>
|
|
|
</div></div><h3 id='impl-RelativeEq%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/trait.RelativeEq.html" title="trait cgmath::RelativeEq">RelativeEq</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-RelativeEq%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#608-619' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default_max_relative' class="method hidden"><code id='default_max_relative.v'>fn <a href='../cgmath/trait.RelativeEq.html#tymethod.default_max_relative' class='fnname'>default_max_relative</a>() -> S::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#610-612' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The default relative tolerance for testing values that are far-apart. <a href="../cgmath/trait.RelativeEq.html#tymethod.default_max_relative">Read more</a></p>
|
|
|
</div><h4 id='method.relative_eq' class="method hidden"><code id='relative_eq.v'>fn <a href='../cgmath/trait.RelativeEq.html#tymethod.relative_eq' class='fnname'>relative_eq</a>(<br> &self, <br> other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self, <br> epsilon: S::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, <br> max_relative: S::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#615-618' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A test for equality that uses a relative comparison if the values are far apart.</p>
|
|
|
</div><h4 id='method.relative_ne' class="method hidden"><code id='relative_ne.v'>fn <a href='../cgmath/trait.RelativeEq.html#method.relative_ne' class='fnname'>relative_ne</a>(<br> &self, <br> other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs, <br> epsilon: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, <br> max_relative: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/approx/relative_eq.rs.html#29-36' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The inverse of <code>ApproxEq::relative_eq</code>.</p>
|
|
|
</div></div><h3 id='impl-UlpsEq%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/trait.UlpsEq.html" title="trait cgmath::UlpsEq">UlpsEq</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-UlpsEq%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#621-632' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default_max_ulps' class="method hidden"><code id='default_max_ulps.v'>fn <a href='../cgmath/trait.UlpsEq.html#tymethod.default_max_ulps' class='fnname'>default_max_ulps</a>() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#623-625' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The default ULPs to tolerate when testing values that are far-apart. <a href="../cgmath/trait.UlpsEq.html#tymethod.default_max_ulps">Read more</a></p>
|
|
|
</div><h4 id='method.ulps_eq' class="method hidden"><code id='ulps_eq.v'>fn <a href='../cgmath/trait.UlpsEq.html#tymethod.ulps_eq' class='fnname'>ulps_eq</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self, epsilon: S::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, max_ulps: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#628-631' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A test for equality that uses units in the last place (ULP) if the values are far apart.</p>
|
|
|
</div><h4 id='method.ulps_ne' class="method hidden"><code id='ulps_ne.v'>fn <a href='../cgmath/trait.UlpsEq.html#method.ulps_ne' class='fnname'>ulps_ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs, epsilon: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, max_ulps: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/approx/ulps_eq.rs.html#24-26' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The inverse of <code>ApproxEq::ulps_eq</code>.</p>
|
|
|
</div></div><h3 id='impl-Zero' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/prelude/trait.Zero.html" title="trait cgmath::prelude::Zero">Zero</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-Zero' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#185-195' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.zero' class="method hidden"><code id='zero.v'>fn <a href='../cgmath/prelude/trait.Zero.html#tymethod.zero' class='fnname'>zero</a>() -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#187-189' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the additive identity element of <code>Self</code>, <code>0</code>. # Purity <a href="../cgmath/prelude/trait.Zero.html#tymethod.zero">Read more</a></p>
|
|
|
</div><h4 id='method.is_zero' class="method hidden"><code id='is_zero.v'>fn <a href='../cgmath/prelude/trait.Zero.html#tymethod.is_zero' class='fnname'>is_zero</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#192-194' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>true</code> if <code>self</code> is equal to the additive identity.</p>
|
|
|
</div><h4 id='method.set_zero' class="method hidden"><code id='set_zero.v'>fn <a href='../cgmath/prelude/trait.Zero.html#method.set_zero' class='fnname'>set_zero</a>(&mut self)</code><a class='srclink' href='../src/num_traits/identities.rs.html#23-25' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Sets <code>self</code> to the additive identity element of <code>Self</code>, <code>0</code>.</p>
|
|
|
</div></div><h3 id='impl-One' class='impl'><code class='in-band'>impl<S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>> <a class="trait" href="../cgmath/prelude/trait.One.html" title="trait cgmath::prelude::One">One</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a href='#impl-One' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#197-202' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.one' class="method hidden"><code id='one.v'>fn <a href='../cgmath/prelude/trait.One.html#tymethod.one' class='fnname'>one</a>() -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#199-201' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the multiplicative identity element of <code>Self</code>, <code>1</code>. <a href="../cgmath/prelude/trait.One.html#tymethod.one">Read more</a></p>
|
|
|
</div><h4 id='method.set_one' class="method hidden"><code id='set_one.v'>fn <a href='../cgmath/prelude/trait.One.html#method.set_one' class='fnname'>set_one</a>(&mut self)</code><a class='srclink' href='../src/num_traits/identities.rs.html#103-105' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Sets <code>self</code> to the multiplicative identity element of <code>Self</code>, <code>1</code>.</p>
|
|
|
</div><h4 id='method.is_one' class="method hidden"><code id='is_one.v'>fn <a href='../cgmath/prelude/trait.One.html#method.is_one' class='fnname'>is_one</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><Self>, </span></code><a class='srclink' href='../src/num_traits/identities.rs.html#113-118' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns <code>true</code> if <code>self</code> is equal to the multiplicative identity. <a href="../cgmath/prelude/trait.One.html#method.is_one">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Distribution%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl<S> <a class="trait" href="../rand/distributions/trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S>> for <a class="struct" href="../rand/distributions/struct.Standard.html" title="struct rand::distributions::Standard">Standard</a> <span class="where fmt-newline">where<br> <a class="struct" href="../rand/distributions/struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="../rand/distributions/trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><S>,<br> <a class="struct" href="../rand/distributions/struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="../rand/distributions/trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a><S>>,<br> S: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>, </span></code><a href='#impl-Distribution%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#870-878' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.sample' class="method hidden"><code id='sample.v'>fn <a href='../rand/distributions/trait.Distribution.html#tymethod.sample' class='fnname'>sample</a><R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S></code><a class='srclink' href='../src/cgmath/quaternion.rs.html#875-877' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
|
|
|
</div><h4 id='method.sample_iter' class="method hidden"><code id='sample_iter.v'>fn <a href='../rand/distributions/trait.Distribution.html#method.sample_iter' class='fnname'>sample_iter</a><R>(&'a self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R) -> <a class="struct" href="../rand/distributions/struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><'a, Self, R, T> <span class="where fmt-newline">where<br> R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>, </span></code><a class='srclink' href='../src/rand/distributions/mod.rs.html#261-269' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as the source of randomness. <a href="../rand/distributions/trait.Distribution.html#method.sample_iter">Read more</a></p>
|
|
|
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><code class='in-band'>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>, </span></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
|
|
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
|
|
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
|
|
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#544-549' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into-2' class="method hidden"><code id='into.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#546-548' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553-555' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-13' class="method hidden"><code id='from.v-13'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#554' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#572-578' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
|
|
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#575-577' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#560-567' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
|
|
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#564-566' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
|
|
</div></div><h3 id='impl-NumOps%3CRhs%2C%20Output%3E' class='impl'><code class='in-band'>impl<T, Rhs, Output> <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><Rhs, Output> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><Rhs, Output = Output>, </span></code><a href='#impl-NumOps%3CRhs%2C%20Output%3E' class='anchor'></a><a class='srclink' href='../src/num_traits/lib.rs.html#93-100' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-NumAssignOps%3CRhs%3E' class='impl'><code class='in-band'>impl<T, Rhs> <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a><Rhs> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a><Rhs>, </span></code><a href='#impl-NumAssignOps%3CRhs%3E' class='anchor'></a><a class='srclink' href='../src/num_traits/lib.rs.html#124-127' title='goto source code'>[src]</a></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "cgmath";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |