You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trac3r-rust/doc/cgmath/trait.SquareMatrix.html

48 lines
28 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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 `SquareMatrix` trait in crate `cgmath`."><meta name="keywords" content="rust, rustlang, rust-lang, SquareMatrix"><title>cgmath::SquareMatrix - 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 trait"><!--[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">&#9776;</div><a href='../cgmath/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait SquareMatrix</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.ColumnRow">ColumnRow</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.determinant">determinant</a><a href="#tymethod.diagonal">diagonal</a><a href="#tymethod.from_diagonal">from_diagonal</a><a href="#tymethod.from_value">from_value</a><a href="#tymethod.invert">invert</a><a href="#tymethod.is_diagonal">is_diagonal</a><a href="#tymethod.is_symmetric">is_symmetric</a><a href="#tymethod.transpose_self">transpose_self</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.identity">identity</a><a href="#method.is_identity">is_identity</a><a href="#method.is_invertible">is_invertible</a><a href="#method.trace">trace</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>cgmath</a></p><script>window.sidebarCurrent = {name: 'SquareMatrix', ty: 'trait', 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'>&#x2212;</span>]</a></span><a class='srclink' href='../src/cgmath/structure.rs.html#483-564' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>cgmath</a>::<wbr><a class="trait" href=''>SquareMatrix</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait SquareMatrix <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>: <a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../cgmath/prelude/trait.One.html" title="trait cgmath::prelude::One">One</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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>&lt;Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../cgmath/prelude/trait.Matrix.html" title="trait cgmath::prelude::Matrix">Matrix</a>&lt;Column = Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a>, Row = Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a>, Transpose = Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a>, Output = Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;Self, Output = Self&gt;,&nbsp;</span>{
type <a href='#associatedtype.ColumnRow' class="type">ColumnRow</a>: <a class="trait" href="../cgmath/prelude/trait.VectorSpace.html" title="trait cgmath::prelude::VectorSpace">VectorSpace</a>&lt;Scalar = Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>&gt; + <a class="trait" href="../cgmath/prelude/trait.Array.html" title="trait cgmath::prelude::Array">Array</a>&lt;Element = Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>&gt;;
fn <a href='#tymethod.from_value' class='fnname'>from_value</a>(value: Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.from_diagonal' class='fnname'>from_diagonal</a>(diagonal: Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.transpose_self' class='fnname'>transpose_self</a>(&amp;mut self);
<div class='item-spacer'></div> fn <a href='#tymethod.determinant' class='fnname'>determinant</a>(&amp;self) -&gt; Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.diagonal' class='fnname'>diagonal</a>(&amp;self) -&gt; Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.invert' class='fnname'>invert</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.is_diagonal' class='fnname'>is_diagonal</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.is_symmetric' class='fnname'>is_symmetric</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
fn <a href='#method.identity' class='fnname'>identity</a>() -&gt; Self { ... }
<div class='item-spacer'></div> fn <a href='#method.trace' class='fnname'>trace</a>(&amp;self) -&gt; Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.is_invertible' class='fnname'>is_invertible</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.is_identity' class='fnname'>is_identity</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> { ... }
}</pre></div><div class='docblock'><p>A column-major major matrix where the rows and column vectors are of the same dimensions.</p>
</div>
<h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.ColumnRow' class='method'><code id='ColumnRow.t'>type <a href='#associatedtype.ColumnRow' class="type">ColumnRow</a>: <a class="trait" href="../cgmath/prelude/trait.VectorSpace.html" title="trait cgmath::prelude::VectorSpace">VectorSpace</a>&lt;Scalar = Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>&gt; + <a class="trait" href="../cgmath/prelude/trait.Array.html" title="trait cgmath::prelude::Array">Array</a>&lt;Element = Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>&gt;</code></h3><div class='docblock'><p>The row/column vector of the matrix.</p>
<p>This is used to constrain the column and rows to be of the same type in lieu of equality
constraints being implemented for <code>where</code> clauses. Once those are added, this type will
likely go away.</p>
</div></div><span class='loading-content'>Loading content...</span>
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.from_value' class='method'><code id='from_value.v'>fn <a href='#tymethod.from_value' class='fnname'>from_value</a>(value: Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a>) -&gt; Self</code></h3><div class='docblock'><p>Create a new diagonal matrix using the supplied value.</p>
</div><h3 id='tymethod.from_diagonal' class='method'><code id='from_diagonal.v'>fn <a href='#tymethod.from_diagonal' class='fnname'>from_diagonal</a>(diagonal: Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a>) -&gt; Self</code></h3><div class='docblock'><p>Create a matrix from a non-uniform scale</p>
</div><h3 id='tymethod.transpose_self' class='method'><code id='transpose_self.v'>fn <a href='#tymethod.transpose_self' class='fnname'>transpose_self</a>(&amp;mut self)</code></h3><div class='docblock'><p>Transpose this matrix in-place.</p>
</div><h3 id='tymethod.determinant' class='method'><code id='determinant.v'>fn <a href='#tymethod.determinant' class='fnname'>determinant</a>(&amp;self) -&gt; Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a></code></h3><div class='docblock'><p>Take the determinant of this matrix.</p>
</div><h3 id='tymethod.diagonal' class='method'><code id='diagonal.v'>fn <a href='#tymethod.diagonal' class='fnname'>diagonal</a>(&amp;self) -&gt; Self::<a class="type" href="../cgmath/prelude/trait.SquareMatrix.html#associatedtype.ColumnRow" title="type cgmath::prelude::SquareMatrix::ColumnRow">ColumnRow</a></code></h3><div class='docblock'><p>Return a vector containing the diagonal of this matrix.</p>
</div><h3 id='tymethod.invert' class='method'><code id='invert.v'>fn <a href='#tymethod.invert' class='fnname'>invert</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></h3><div class='docblock'><p>Invert this matrix, returning a new matrix. <code>m.mul_m(m.invert())</code> is
the identity matrix. Returns <code>None</code> if this matrix is not invertible
(has a determinant of zero).</p>
</div><h3 id='tymethod.is_diagonal' class='method'><code id='is_diagonal.v'>fn <a href='#tymethod.is_diagonal' class='fnname'>is_diagonal</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h3><div class='docblock'><p>Test if this is a diagonal matrix. That is, every element outside of
the diagonal is 0.</p>
</div><h3 id='tymethod.is_symmetric' class='method'><code id='is_symmetric.v'>fn <a href='#tymethod.is_symmetric' class='fnname'>is_symmetric</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h3><div class='docblock'><p>Test if this matrix is symmetric. That is, it is equal to its
transpose.</p>
</div></div><span class='loading-content'>Loading content...</span>
<h2 id='provided-methods' class='small-section-header'>Provided methods<a href='#provided-methods' class='anchor'></a></h2><div class='methods'><h3 id='method.identity' class='method'><code id='identity.v'>fn <a href='#method.identity' class='fnname'>identity</a>() -&gt; Self</code></h3><div class='docblock'><p>The <a href="https://en.wikipedia.org/wiki/Identity_matrix">identity matrix</a>. Multiplying this matrix with another should have
no effect.</p>
<p>Note that this is exactly the same as <code>One::one</code>. The term 'identity
matrix' is more common though, so we provide this method as an
alternative.</p>
</div><h3 id='method.trace' class='method'><code id='trace.v'>fn <a href='#method.trace' class='fnname'>trace</a>(&amp;self) -&gt; Self::<a class="type" href="../cgmath/prelude/trait.VectorSpace.html#associatedtype.Scalar" title="type cgmath::prelude::VectorSpace::Scalar">Scalar</a></code></h3><div class='docblock'><p>Return the trace of this matrix. That is, the sum of the diagonal.</p>
</div><h3 id='method.is_invertible' class='method'><code id='is_invertible.v'>fn <a href='#method.is_invertible' class='fnname'>is_invertible</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h3><div class='docblock'><p>Test if this matrix is invertible.</p>
</div><h3 id='method.is_identity' class='method'><code id='is_identity.v'>fn <a href='#method.is_identity' class='fnname'>is_identity</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h3><div class='docblock'><p>Test if this matrix is the identity matrix. That is, it is diagonal
and every element in the diagonal is one.</p>
</div></div><span class='loading-content'>Loading content...</span>
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-SquareMatrix' class='impl'><code class='in-band'>impl&lt;S:&nbsp;<a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>&gt; SquareMatrix for <a class="struct" href="../cgmath/struct.Matrix2.html" title="struct cgmath::Matrix2">Matrix2</a>&lt;S&gt;</code><a href='#impl-SquareMatrix' class='anchor'></a><a class='srclink' href='../src/cgmath/matrix.rs.html#505-564' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.ColumnRow-1' class="type"><code id='ColumnRow.t-1'>type <a href='#associatedtype.ColumnRow-1' class="type">ColumnRow</a> = <a class="struct" href="../cgmath/struct.Vector2.html" title="struct cgmath::Vector2">Vector2</a>&lt;S&gt;</code></h4><h4 id='method.from_value' class="method hidden"><code id='from_value.v-1'>fn <a href='#method.from_value' class='fnname'>from_value</a>(value: S) -&gt; <a class="struct" href="../cgmath/struct.Matrix2.html" title="struct cgmath::Matrix2">Matrix2</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#509-515' title='goto source code'>[src]</a></h4><h4 id='method.from_diagonal' class="method hidden"><code id='from_diagonal.v-1'>fn <a href='#method.from_diagonal' class='fnname'>from_diagonal</a>(value: <a class="struct" href="../cgmath/struct.Vector2.html" title="struct cgmath::Vector2">Vector2</a>&lt;S&gt;) -&gt; <a class="struct" href="../cgmath/struct.Matrix2.html" title="struct cgmath::Matrix2">Matrix2</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#518-524' title='goto source code'>[src]</a></h4><h4 id='method.transpose_self' class="method hidden"><code id='transpose_self.v-1'>fn <a href='#method.transpose_self' class='fnname'>transpose_self</a>(&amp;mut self)</code><a class='srclink' href='../src/cgmath/matrix.rs.html#527-529' title='goto source code'>[src]</a></h4><h4 id='method.determinant' class="method hidden"><code id='determinant.v-1'>fn <a href='#method.determinant' class='fnname'>determinant</a>(&amp;self) -&gt; S</code><a class='srclink' href='../src/cgmath/matrix.rs.html#532-534' title='goto source code'>[src]</a></h4><h4 id='method.diagonal' class="method hidden"><code id='diagonal.v-1'>fn <a href='#method.diagonal' class='fnname'>diagonal</a>(&amp;self) -&gt; <a class="struct" href="../cgmath/struct.Vector2.html" title="struct cgmath::Vector2">Vector2</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#537-539' title='goto source code'>[src]</a></h4><h4 id='method.invert' class="method hidden"><code id='invert.v-1'>fn <a href='#method.invert' class='fnname'>invert</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../cgmath/struct.Matrix2.html" title="struct cgmath::Matrix2">Matrix2</a>&lt;S&gt;&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#542-553' title='goto source code'>[src]</a></h4><h4 id='method.is_diagonal' class="method hidden"><code id='is_diagonal.v-1'>fn <a href='#method.is_diagonal' class='fnname'>is_diagonal</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/matrix.rs.html#556-558' title='goto source code'>[src]</a></h4><h4 id='method.is_symmetric' class="method hidden"><code id='is_symmetric.v-1'>fn <a href='#method.is_symmetric' class='fnname'>is_symmetric</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/matrix.rs.html#561-563' title='goto source code'>[src]</a></h4></div><h3 id='impl-SquareMatrix-1' class='impl'><code class='in-band'>impl&lt;S:&nbsp;<a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>&gt; SquareMatrix for <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a>&lt;S&gt;</code><a href='#impl-SquareMatrix-1' class='anchor'></a><a class='srclink' href='../src/cgmath/matrix.rs.html#605-672' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.ColumnRow-2' class="type"><code id='ColumnRow.t-2'>type <a href='#associatedtype.ColumnRow-2' class="type">ColumnRow</a> = <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a>&lt;S&gt;</code></h4><h4 id='method.from_value-1' class="method hidden"><code id='from_value.v-2'>fn <a href='#method.from_value-1' class='fnname'>from_value</a>(value: S) -&gt; <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#609-616' title='goto source code'>[src]</a></h4><h4 id='method.from_diagonal-1' class="method hidden"><code id='from_diagonal.v-2'>fn <a href='#method.from_diagonal-1' class='fnname'>from_diagonal</a>(value: <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a>&lt;S&gt;) -&gt; <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#619-626' title='goto source code'>[src]</a></h4><h4 id='method.transpose_self-1' class="method hidden"><code id='transpose_self.v-2'>fn <a href='#method.transpose_self-1' class='fnname'>transpose_self</a>(&amp;mut self)</code><a class='srclink' href='../src/cgmath/matrix.rs.html#629-633' title='goto source code'>[src]</a></h4><h4 id='method.determinant-1' class="method hidden"><code id='determinant.v-2'>fn <a href='#method.determinant-1' class='fnname'>determinant</a>(&amp;self) -&gt; S</code><a class='srclink' href='../src/cgmath/matrix.rs.html#635-639' title='goto source code'>[src]</a></h4><h4 id='method.diagonal-1' class="method hidden"><code id='diagonal.v-2'>fn <a href='#method.diagonal-1' class='fnname'>diagonal</a>(&amp;self) -&gt; <a class="struct" href="../cgmath/struct.Vector3.html" title="struct cgmath::Vector3">Vector3</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#642-644' title='goto source code'>[src]</a></h4><h4 id='method.invert-1' class="method hidden"><code id='invert.v-2'>fn <a href='#method.invert-1' class='fnname'>invert</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a>&lt;S&gt;&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#646-659' title='goto source code'>[src]</a></h4><h4 id='method.is_diagonal-1' class="method hidden"><code id='is_diagonal.v-2'>fn <a href='#method.is_diagonal-1' class='fnname'>is_diagonal</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/matrix.rs.html#661-665' title='goto source code'>[src]</a></h4><h4 id='method.is_symmetric-1' class="method hidden"><code id='is_symmetric.v-2'>fn <a href='#method.is_symmetric-1' class='fnname'>is_symmetric</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/matrix.rs.html#667-671' title='goto source code'>[src]</a></h4></div><h3 id='impl-SquareMatrix-2' class='impl'><code class='in-band'>impl&lt;S:&nbsp;<a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>&gt; SquareMatrix for <a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a>&lt;S&gt;</code><a href='#impl-SquareMatrix-2' class='anchor'></a><a class='srclink' href='../src/cgmath/matrix.rs.html#715-839' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.ColumnRow-3' class="type"><code id='ColumnRow.t-3'>type <a href='#associatedtype.ColumnRow-3' class="type">ColumnRow</a> = <a class="struct" href="../cgmath/struct.Vector4.html" title="struct cgmath::Vector4">Vector4</a>&lt;S&gt;</code></h4><h4 id='method.from_value-2' class="method hidden"><code id='from_value.v-3'>fn <a href='#method.from_value-2' class='fnname'>from_value</a>(value: S) -&gt; <a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#719-727' title='goto source code'>[src]</a></h4><h4 id='method.from_diagonal-2' class="method hidden"><code id='from_diagonal.v-3'>fn <a href='#method.from_diagonal-2' class='fnname'>from_diagonal</a>(value: <a class="struct" href="../cgmath/struct.Vector4.html" title="struct cgmath::Vector4">Vector4</a>&lt;S&gt;) -&gt; <a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#730-738' title='goto source code'>[src]</a></h4><h4 id='method.transpose_self-2' class="method hidden"><code id='transpose_self.v-3'>fn <a href='#method.transpose_self-2' class='fnname'>transpose_self</a>(&amp;mut self)</code><a class='srclink' href='../src/cgmath/matrix.rs.html#740-747' title='goto source code'>[src]</a></h4><h4 id='method.determinant-2' class="method hidden"><code id='determinant.v-3'>fn <a href='#method.determinant-2' class='fnname'>determinant</a>(&amp;self) -&gt; S</code><a class='srclink' href='../src/cgmath/matrix.rs.html#749-752' title='goto source code'>[src]</a></h4><h4 id='method.diagonal-2' class="method hidden"><code id='diagonal.v-3'>fn <a href='#method.diagonal-2' class='fnname'>diagonal</a>(&amp;self) -&gt; <a class="struct" href="../cgmath/struct.Vector4.html" title="struct cgmath::Vector4">Vector4</a>&lt;S&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#755-757' title='goto source code'>[src]</a></h4><h4 id='method.invert-2' class="method hidden"><code id='invert.v-3'>fn <a href='#method.invert-2' class='fnname'>invert</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a>&lt;S&gt;&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#765-804' title='goto source code'>[src]</a></h4><h4 id='method.is_diagonal-2' class="method hidden"><code id='is_diagonal.v-3'>fn <a href='#method.is_diagonal-2' class='fnname'>is_diagonal</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/matrix.rs.html#822-829' title='goto source code'>[src]</a></h4><h4 id='method.is_symmetric-2' class="method hidden"><code id='is_symmetric.v-3'>fn <a href='#method.is_symmetric-2' class='fnname'>is_symmetric</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/matrix.rs.html#831-838' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
src="../implementors/cgmath/trait.SquareMatrix.js">
</script></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>&#9166;</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>