192 lines
157 KiB
HTML
192 lines
157 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A shape with rounded borders."><title>RoundShape in parry3d::shape - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="parry3d" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../parry3d/index.html">parry3d</a><span class="version">0.18.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Round<wbr>Shape</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.border_radius" title="border_radius">border_radius</a></li><li><a href="#structfield.inner_shape" title="inner_shape">inner_shape</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.to_outline" title="to_outline">to_outline</a></li><li><a href="#method.to_outline-1" title="to_outline">to_outline</a></li><li><a href="#method.to_outline-2" title="to_outline">to_outline</a></li><li><a href="#method.to_outline-3" title="to_outline">to_outline</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-RoundShape%3CS%3E" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-RoundShape%3CS%3E" title="Copy">Copy</a></li><li><a href="#impl-Debug-for-RoundShape%3CS%3E" title="Debug">Debug</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-RoundShape%3CS%3E" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-PointQuery-for-RoundShape%3CS%3E" title="PointQuery">PointQuery</a></li><li><a href="#impl-RayCast-for-RoundShape%3CS%3E" title="RayCast">RayCast</a></li><li><a href="#impl-Serialize-for-RoundShape%3CS%3E" title="Serialize">Serialize</a></li><li><a href="#impl-Shape-for-RoundShape%3CCone%3E" title="Shape">Shape</a></li><li><a href="#impl-Shape-for-RoundShape%3CConvexPolyhedron%3E" title="Shape">Shape</a></li><li><a href="#impl-Shape-for-RoundShape%3CCuboid%3E" title="Shape">Shape</a></li><li><a href="#impl-Shape-for-RoundShape%3CCylinder%3E" title="Shape">Shape</a></li><li><a href="#impl-Shape-for-RoundShape%3CTriangle%3E" title="Shape">Shape</a></li><li><a href="#impl-SupportMap-for-RoundShape%3CS%3E" title="SupportMap">SupportMap</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-RoundShape%3CS%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-RoundShape%3CS%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-RoundShape%3CS%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-RoundShape%3CS%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-RoundShape%3CS%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-RoundShape%3CS%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-DeserializeOwned-for-T" title="DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-Downcast-for-T" title="Downcast">Downcast</a></li><li><a href="#impl-DowncastSync-for-T" title="DowncastSync">DowncastSync</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-SupersetOf%3CSS%3E-for-SP" title="SupersetOf<SS>">SupersetOf<SS></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In parry3d::<wbr>shape</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">parry3d</a>::<wbr><a href="index.html">shape</a></span><h1>Struct <span class="struct">RoundShape</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/parry3d/shape/round_shape.rs.html#14-19">Source</a> </span></div><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct RoundShape<S> {
|
||
pub inner_shape: S,
|
||
pub border_radius: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A shape with rounded borders.</p>
|
||
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.inner_shape" class="structfield section-header"><a href="#structfield.inner_shape" class="anchor field">§</a><code>inner_shape: S</code></span><div class="docblock"><p>The shape being rounded.</p>
|
||
</div><span id="structfield.border_radius" class="structfield section-header"><a href="#structfield.border_radius" class="anchor field">§</a><code>border_radius: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></code></span><div class="docblock"><p>The radius of the rounded border.</p>
|
||
</div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-RoundShape%3CCone%3E" class="impl"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_cone_to_outline.rs.html#6-45">Source</a><a href="#impl-RoundShape%3CCone%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.Cone.html" title="struct parry3d::shape::Cone">Cone</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_outline" class="method"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_cone_to_outline.rs.html#8-44">Source</a><h4 class="code-header">pub fn <a href="#method.to_outline" class="fn">to_outline</a>(
|
||
&self,
|
||
nsubdiv: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
border_nsubdiv: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> (<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="type" href="../../nalgebra/geometry/point_alias/type.Point3.html" title="type nalgebra::geometry::point_alias::Point3">Point3</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><[<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">2</a>]>)</h4></section></summary><div class="docblock"><p>Outlines this round cone’s shape using polylines.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RoundShape%3CConvexPolyhedron%3E" class="impl"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_convex_polyhedron_to_outline.rs.html#6-71">Source</a><a href="#impl-RoundShape%3CConvexPolyhedron%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.ConvexPolyhedron.html" title="struct parry3d::shape::ConvexPolyhedron">ConvexPolyhedron</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_outline-1" class="method"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_convex_polyhedron_to_outline.rs.html#8-70">Source</a><h4 class="code-header">pub fn <a href="#method.to_outline-1" class="fn">to_outline</a>(&self, nsubdivs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>) -> (<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="type" href="../../nalgebra/geometry/point_alias/type.Point3.html" title="type nalgebra::geometry::point_alias::Point3">Point3</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><[<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">2</a>]>)</h4></section></summary><div class="docblock"><p>Outlines this round convex polyhedron’s shape using polylines.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RoundShape%3CCuboid%3E" class="impl"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_cuboid_to_outline.rs.html#6-61">Source</a><a href="#impl-RoundShape%3CCuboid%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.Cuboid.html" title="struct parry3d::shape::Cuboid">Cuboid</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_outline-2" class="method"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_cuboid_to_outline.rs.html#8-60">Source</a><h4 class="code-header">pub fn <a href="#method.to_outline-2" class="fn">to_outline</a>(&self, nsubdivs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>) -> (<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><[<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">2</a>]>)</h4></section></summary><div class="docblock"><p>Outlines this round cuboid’s surface with polylines.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RoundShape%3CCylinder%3E" class="impl"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_cylinder_to_outline.rs.html#6-43">Source</a><a href="#impl-RoundShape%3CCylinder%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.Cylinder.html" title="struct parry3d::shape::Cylinder">Cylinder</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_outline-3" class="method"><a class="src rightside" href="../../src/parry3d/transformation/to_outline/round_cylinder_to_outline.rs.html#8-42">Source</a><h4 class="code-header">pub fn <a href="#method.to_outline-3" class="fn">to_outline</a>(
|
||
&self,
|
||
nsubdiv: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
border_nsubdiv: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> (<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="type" href="../../nalgebra/geometry/point_alias/type.Point3.html" title="type nalgebra::geometry::point_alias::Point3">Point3</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><[<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">2</a>]>)</h4></section></summary><div class="docblock"><p>Outlines this round cylinder’s shape using polylines.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#11">Source</a><a href="#impl-Clone-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#11">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#11">Source</a><a href="#impl-Debug-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#11">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#5">Source</a><a href="#impl-Deserialize%3C'de%3E-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<'de, S> <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#5">Source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><div class="where">where
|
||
__D: <a class="trait" href="../../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="../../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PointQuery-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/query/point/point_round_shape.rs.html#8-32">Source</a><a href="#impl-PointQuery-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>> <a class="trait" href="../query/point/trait.PointQuery.html" title="trait parry3d::query::point::PointQuery">PointQuery</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.project_local_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_round_shape.rs.html#10-23">Source</a><a href="#method.project_local_point" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#tymethod.project_local_point" class="fn">project_local_point</a>(
|
||
&self,
|
||
point: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="struct" href="../query/point/struct.PointProjection.html" title="struct parry3d::query::point::PointProjection">PointProjection</a></h4></section></summary><div class='docblock'>Projects a point on <code>self</code>. <a href="../query/point/trait.PointQuery.html#tymethod.project_local_point">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.project_local_point_and_get_feature" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_round_shape.rs.html#26-31">Source</a><a href="#method.project_local_point_and_get_feature" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#tymethod.project_local_point_and_get_feature" class="fn">project_local_point_and_get_feature</a>(
|
||
&self,
|
||
point: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> (<a class="struct" href="../query/point/struct.PointProjection.html" title="struct parry3d::query::point::PointProjection">PointProjection</a>, <a class="enum" href="enum.FeatureId.html" title="enum parry3d::shape::FeatureId">FeatureId</a>)</h4></section></summary><div class='docblock'>Projects a point on the boundary of <code>self</code> and returns the id of the
|
||
feature the point was projected on.</div></details><details class="toggle method-toggle" open><summary><section id="method.project_local_point_with_max_dist" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#48-60">Source</a><a href="#method.project_local_point_with_max_dist" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.project_local_point_with_max_dist" class="fn">project_local_point_with_max_dist</a>(
|
||
&self,
|
||
pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
max_dist: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../query/point/struct.PointProjection.html" title="struct parry3d::query::point::PointProjection">PointProjection</a>></h4></section></summary><div class='docblock'>Projects a point on <code>self</code>, unless the projection lies further than the given max distance. <a href="../query/point/trait.PointQuery.html#method.project_local_point_with_max_dist">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.project_point_with_max_dist" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#63-72">Source</a><a href="#method.project_point_with_max_dist" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.project_point_with_max_dist" class="fn">project_point_with_max_dist</a>(
|
||
&self,
|
||
m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
max_dist: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../query/point/struct.PointProjection.html" title="struct parry3d::query::point::PointProjection">PointProjection</a>></h4></section></summary><div class='docblock'>Projects a point on <code>self</code> transformed by <code>m</code>, unless the projection lies further than the given max distance.</div></details><details class="toggle method-toggle" open><summary><section id="method.distance_to_local_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#85-94">Source</a><a href="#method.distance_to_local_point" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.distance_to_local_point" class="fn">distance_to_local_point</a>(&self, pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>, solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></summary><div class='docblock'>Computes the minimal distance between a point and <code>self</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.contains_local_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#97-99">Source</a><a href="#method.contains_local_point" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.contains_local_point" class="fn">contains_local_point</a>(&self, pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests if the given point is inside of <code>self</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.project_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#102-105">Source</a><a href="#method.project_point" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.project_point" class="fn">project_point</a>(
|
||
&self,
|
||
m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="struct" href="../query/point/struct.PointProjection.html" title="struct parry3d::query::point::PointProjection">PointProjection</a></h4></section></summary><div class='docblock'>Projects a point on <code>self</code> transformed by <code>m</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.distance_to_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#109-111">Source</a><a href="#method.distance_to_point" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.distance_to_point" class="fn">distance_to_point</a>(
|
||
&self,
|
||
m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></summary><div class='docblock'>Computes the minimal distance between a point and <code>self</code> transformed by <code>m</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.project_point_and_get_feature" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#115-122">Source</a><a href="#method.project_point_and_get_feature" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.project_point_and_get_feature" class="fn">project_point_and_get_feature</a>(
|
||
&self,
|
||
m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> (<a class="struct" href="../query/point/struct.PointProjection.html" title="struct parry3d::query::point::PointProjection">PointProjection</a>, <a class="enum" href="enum.FeatureId.html" title="enum parry3d::shape::FeatureId">FeatureId</a>)</h4></section></summary><div class='docblock'>Projects a point on the boundary of <code>self</code> transformed by <code>m</code> and returns the id of the
|
||
feature the point was projected on.</div></details><details class="toggle method-toggle" open><summary><section id="method.contains_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/point/point_query.rs.html#126-128">Source</a><a href="#method.contains_point" class="anchor">§</a><h4 class="code-header">fn <a href="../query/point/trait.PointQuery.html#method.contains_point" class="fn">contains_point</a>(&self, m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>, pt: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests if the given point is inside of <code>self</code> transformed by <code>m</code>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RayCast-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/query/ray/ray_round_shape.rs.html#6-21">Source</a><a href="#impl-RayCast-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>> <a class="trait" href="../query/details/trait.RayCast.html" title="trait parry3d::query::details::RayCast">RayCast</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.cast_local_ray_and_get_normal" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/ray/ray_round_shape.rs.html#7-20">Source</a><a href="#method.cast_local_ray_and_get_normal" class="anchor">§</a><h4 class="code-header">fn <a href="../query/details/trait.RayCast.html#tymethod.cast_local_ray_and_get_normal" class="fn">cast_local_ray_and_get_normal</a>(
|
||
&self,
|
||
ray: &<a class="struct" href="../query/details/struct.Ray.html" title="struct parry3d::query::details::Ray">Ray</a>,
|
||
max_time_of_impact: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../query/details/struct.RayIntersection.html" title="struct parry3d::query::details::RayIntersection">RayIntersection</a>></h4></section></summary><div class='docblock'>Computes the time of impact, and normal between this transformed shape and a ray.</div></details><details class="toggle method-toggle" open><summary><section id="method.cast_local_ray" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/ray/ray.rs.html#125-128">Source</a><a href="#method.cast_local_ray" class="anchor">§</a><h4 class="code-header">fn <a href="../query/details/trait.RayCast.html#method.cast_local_ray" class="fn">cast_local_ray</a>(
|
||
&self,
|
||
ray: &<a class="struct" href="../query/details/struct.Ray.html" title="struct parry3d::query::details::Ray">Ray</a>,
|
||
max_time_of_impact: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>></h4></section></summary><div class='docblock'>Computes the time of impact between this transform shape and a ray.</div></details><details class="toggle method-toggle" open><summary><section id="method.intersects_local_ray" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/ray/ray.rs.html#140-142">Source</a><a href="#method.intersects_local_ray" class="anchor">§</a><h4 class="code-header">fn <a href="../query/details/trait.RayCast.html#method.intersects_local_ray" class="fn">intersects_local_ray</a>(&self, ray: &<a class="struct" href="../query/details/struct.Ray.html" title="struct parry3d::query::details::Ray">Ray</a>, max_time_of_impact: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests whether a ray intersects this transformed shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.cast_ray" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/ray/ray.rs.html#145-154">Source</a><a href="#method.cast_ray" class="anchor">§</a><h4 class="code-header">fn <a href="../query/details/trait.RayCast.html#method.cast_ray" class="fn">cast_ray</a>(
|
||
&self,
|
||
m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
ray: &<a class="struct" href="../query/details/struct.Ray.html" title="struct parry3d::query::details::Ray">Ray</a>,
|
||
max_time_of_impact: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>></h4></section></summary><div class='docblock'>Computes the time of impact between this transform shape and a ray.</div></details><details class="toggle method-toggle" open><summary><section id="method.cast_ray_and_get_normal" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/ray/ray.rs.html#157-167">Source</a><a href="#method.cast_ray_and_get_normal" class="anchor">§</a><h4 class="code-header">fn <a href="../query/details/trait.RayCast.html#method.cast_ray_and_get_normal" class="fn">cast_ray_and_get_normal</a>(
|
||
&self,
|
||
m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
ray: &<a class="struct" href="../query/details/struct.Ray.html" title="struct parry3d::query::details::Ray">Ray</a>,
|
||
max_time_of_impact: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
solid: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../query/details/struct.RayIntersection.html" title="struct parry3d::query::details::RayIntersection">RayIntersection</a>></h4></section></summary><div class='docblock'>Computes the time of impact, and normal between this transformed shape and a ray.</div></details><details class="toggle method-toggle" open><summary><section id="method.intersects_ray" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/query/ray/ray.rs.html#171-174">Source</a><a href="#method.intersects_ray" class="anchor">§</a><h4 class="code-header">fn <a href="../query/details/trait.RayCast.html#method.intersects_ray" class="fn">intersects_ray</a>(
|
||
&self,
|
||
m: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
ray: &<a class="struct" href="../query/details/struct.Ray.html" title="struct parry3d::query::details::Ray">Ray</a>,
|
||
max_time_of_impact: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
|
||
) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests whether a ray intersects this transformed shape.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#5">Source</a><a href="#impl-Serialize-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#5">Source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>><div class="where">where
|
||
__S: <a class="trait" href="../../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="../../serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Shape-for-RoundShape%3CCone%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#impl-Shape-for-RoundShape%3CCone%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.Cone.html" title="struct parry3d::shape::Cone">Cone</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_dyn-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.clone_dyn-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.clone_dyn" class="fn">clone_dyn</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#tymethod.clone_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.scale_dyn-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.scale_dyn-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.scale_dyn" class="fn">scale_dyn</a>(
|
||
&self,
|
||
scale: &<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
num_subdivisions: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>>></h4></section></summary><div class='docblock'>Scales this shape by <code>scale</code> into a boxed trait-object. <a href="trait.Shape.html#tymethod.scale_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_aabb-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.compute_local_aabb-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_aabb" class="fn">compute_local_aabb</a>(&self) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_bounding_sphere-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.compute_local_bounding_sphere-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_bounding_sphere" class="fn">compute_local_bounding_sphere</a>(&self) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_aabb-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.compute_aabb-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_aabb" class="fn">compute_aabb</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape with the given position.</div></details><details class="toggle method-toggle" open><summary><section id="method.mass_properties-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.mass_properties-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.mass_properties" class="fn">mass_properties</a>(&self, density: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="../mass_properties/struct.MassProperties.html" title="struct parry3d::mass_properties::MassProperties">MassProperties</a></h4></section></summary><div class='docblock'>Compute the mass-properties of this shape given its uniform density.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_convex-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.is_convex-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.is_convex" class="fn">is_convex</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Is this shape known to be convex? <a href="trait.Shape.html#method.is_convex">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.shape_type-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.shape_type-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.shape_type" class="fn">shape_type</a>(&self) -> <a class="enum" href="enum.ShapeType.html" title="enum parry3d::shape::ShapeType">ShapeType</a></h4></section></summary><div class='docblock'>Gets the type tag of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_typed_shape-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.as_typed_shape-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.as_typed_shape" class="fn">as_typed_shape</a>(&self) -> <a class="enum" href="enum.TypedShape.html" title="enum parry3d::shape::TypedShape">TypedShape</a><'_></h4></section></summary><div class='docblock'>Gets the underlying shape as an enum.</div></details><section id="method.ccd_thickness-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.ccd_thickness-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_thickness" class="fn">ccd_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><section id="method.ccd_angular_thickness-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.ccd_angular_thickness-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_angular_thickness" class="fn">ccd_angular_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.as_support_map-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.as_support_map-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_support_map" class="fn">as_support_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>></h4></section></summary><div class='docblock'>Converts this shape into its support mapping, if it has one.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_polygonal_feature_map-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1627-1650">Source</a><a href="#method.as_polygonal_feature_map-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_polygonal_feature_map" class="fn">as_polygonal_feature_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&dyn <a class="trait" href="trait.PolygonalFeatureMap.html" title="trait parry3d::shape::PolygonalFeatureMap">PolygonalFeatureMap</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>)></h4></section></summary><div class='docblock'>Converts this shape to a polygonal feature-map, if it is one.</div></details><details class="toggle method-toggle" open><summary><section id="method.clone_box-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#336-338">Source</a><a href="#method.clone_box-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.clone_box" class="fn">clone_box</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: renamed to <code>clone_dyn</code></span></div></span><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#method.clone_box">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_bounding_sphere-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#359-361">Source</a><a href="#method.compute_bounding_sphere-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_bounding_sphere" class="fn">compute_bounding_sphere</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape with the given position.</div></details><section id="method.as_composite_shape-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#397-399">Source</a><a href="#method.as_composite_shape-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_composite_shape" class="fn">as_composite_shape</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SimdCompositeShape.html" title="trait parry3d::shape::SimdCompositeShape">SimdCompositeShape</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.feature_normal_at_point-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#411-417">Source</a><a href="#method.feature_normal_at_point-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.feature_normal_at_point" class="fn">feature_normal_at_point</a>(
|
||
&self,
|
||
_feature: <a class="enum" href="enum.FeatureId.html" title="enum parry3d::shape::FeatureId">FeatureId</a>,
|
||
_point: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../nalgebra/base/unit/struct.Unit.html" title="struct nalgebra::base::unit::Unit">Unit</a><<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>></h4></section></summary><div class='docblock'>The shape’s normal at the given point located on a specific feature.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_swept_aabb-3" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#421-425">Source</a><a href="#method.compute_swept_aabb-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_swept_aabb" class="fn">compute_swept_aabb</a>(
|
||
&self,
|
||
start_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
end_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the swept <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape, i.e., the space it would occupy by moving from
|
||
the given start position to the given end position.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Shape-for-RoundShape%3CConvexPolyhedron%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#impl-Shape-for-RoundShape%3CConvexPolyhedron%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.ConvexPolyhedron.html" title="struct parry3d::shape::ConvexPolyhedron">ConvexPolyhedron</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_dyn-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.clone_dyn-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.clone_dyn" class="fn">clone_dyn</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#tymethod.clone_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.scale_dyn-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.scale_dyn-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.scale_dyn" class="fn">scale_dyn</a>(
|
||
&self,
|
||
scale: &<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
num_subdivisions: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>>></h4></section></summary><div class='docblock'>Scales this shape by <code>scale</code> into a boxed trait-object. <a href="trait.Shape.html#tymethod.scale_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_aabb-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.compute_local_aabb-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_aabb" class="fn">compute_local_aabb</a>(&self) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_bounding_sphere-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.compute_local_bounding_sphere-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_bounding_sphere" class="fn">compute_local_bounding_sphere</a>(&self) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_aabb-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.compute_aabb-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_aabb" class="fn">compute_aabb</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape with the given position.</div></details><details class="toggle method-toggle" open><summary><section id="method.mass_properties-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.mass_properties-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.mass_properties" class="fn">mass_properties</a>(&self, density: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="../mass_properties/struct.MassProperties.html" title="struct parry3d::mass_properties::MassProperties">MassProperties</a></h4></section></summary><div class='docblock'>Compute the mass-properties of this shape given its uniform density.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_convex-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.is_convex-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.is_convex" class="fn">is_convex</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Is this shape known to be convex? <a href="trait.Shape.html#method.is_convex">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.shape_type-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.shape_type-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.shape_type" class="fn">shape_type</a>(&self) -> <a class="enum" href="enum.ShapeType.html" title="enum parry3d::shape::ShapeType">ShapeType</a></h4></section></summary><div class='docblock'>Gets the type tag of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_typed_shape-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.as_typed_shape-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.as_typed_shape" class="fn">as_typed_shape</a>(&self) -> <a class="enum" href="enum.TypedShape.html" title="enum parry3d::shape::TypedShape">TypedShape</a><'_></h4></section></summary><div class='docblock'>Gets the underlying shape as an enum.</div></details><section id="method.ccd_thickness-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.ccd_thickness-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_thickness" class="fn">ccd_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><section id="method.ccd_angular_thickness-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.ccd_angular_thickness-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_angular_thickness" class="fn">ccd_angular_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.as_support_map-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.as_support_map-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_support_map" class="fn">as_support_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>></h4></section></summary><div class='docblock'>Converts this shape into its support mapping, if it has one.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_polygonal_feature_map-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1654-1664">Source</a><a href="#method.as_polygonal_feature_map-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_polygonal_feature_map" class="fn">as_polygonal_feature_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&dyn <a class="trait" href="trait.PolygonalFeatureMap.html" title="trait parry3d::shape::PolygonalFeatureMap">PolygonalFeatureMap</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>)></h4></section></summary><div class='docblock'>Converts this shape to a polygonal feature-map, if it is one.</div></details><details class="toggle method-toggle" open><summary><section id="method.clone_box-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#336-338">Source</a><a href="#method.clone_box-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.clone_box" class="fn">clone_box</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: renamed to <code>clone_dyn</code></span></div></span><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#method.clone_box">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_bounding_sphere-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#359-361">Source</a><a href="#method.compute_bounding_sphere-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_bounding_sphere" class="fn">compute_bounding_sphere</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape with the given position.</div></details><section id="method.as_composite_shape-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#397-399">Source</a><a href="#method.as_composite_shape-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_composite_shape" class="fn">as_composite_shape</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SimdCompositeShape.html" title="trait parry3d::shape::SimdCompositeShape">SimdCompositeShape</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.feature_normal_at_point-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#411-417">Source</a><a href="#method.feature_normal_at_point-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.feature_normal_at_point" class="fn">feature_normal_at_point</a>(
|
||
&self,
|
||
_feature: <a class="enum" href="enum.FeatureId.html" title="enum parry3d::shape::FeatureId">FeatureId</a>,
|
||
_point: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../nalgebra/base/unit/struct.Unit.html" title="struct nalgebra::base::unit::Unit">Unit</a><<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>></h4></section></summary><div class='docblock'>The shape’s normal at the given point located on a specific feature.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_swept_aabb-4" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#421-425">Source</a><a href="#method.compute_swept_aabb-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_swept_aabb" class="fn">compute_swept_aabb</a>(
|
||
&self,
|
||
start_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
end_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the swept <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape, i.e., the space it would occupy by moving from
|
||
the given start position to the given end position.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Shape-for-RoundShape%3CCuboid%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#impl-Shape-for-RoundShape%3CCuboid%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.Cuboid.html" title="struct parry3d::shape::Cuboid">Cuboid</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_dyn" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.clone_dyn" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.clone_dyn" class="fn">clone_dyn</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#tymethod.clone_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.scale_dyn" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.scale_dyn" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.scale_dyn" class="fn">scale_dyn</a>(
|
||
&self,
|
||
scale: &<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
num_subdivisions: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>>></h4></section></summary><div class='docblock'>Scales this shape by <code>scale</code> into a boxed trait-object. <a href="trait.Shape.html#tymethod.scale_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_aabb" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.compute_local_aabb" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_aabb" class="fn">compute_local_aabb</a>(&self) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_bounding_sphere" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.compute_local_bounding_sphere" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_bounding_sphere" class="fn">compute_local_bounding_sphere</a>(&self) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_aabb" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.compute_aabb" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_aabb" class="fn">compute_aabb</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape with the given position.</div></details><details class="toggle method-toggle" open><summary><section id="method.mass_properties" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.mass_properties" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.mass_properties" class="fn">mass_properties</a>(&self, density: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="../mass_properties/struct.MassProperties.html" title="struct parry3d::mass_properties::MassProperties">MassProperties</a></h4></section></summary><div class='docblock'>Compute the mass-properties of this shape given its uniform density.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_convex" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.is_convex" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.is_convex" class="fn">is_convex</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Is this shape known to be convex? <a href="trait.Shape.html#method.is_convex">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.shape_type" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.shape_type" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.shape_type" class="fn">shape_type</a>(&self) -> <a class="enum" href="enum.ShapeType.html" title="enum parry3d::shape::ShapeType">ShapeType</a></h4></section></summary><div class='docblock'>Gets the type tag of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_typed_shape" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.as_typed_shape" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.as_typed_shape" class="fn">as_typed_shape</a>(&self) -> <a class="enum" href="enum.TypedShape.html" title="enum parry3d::shape::TypedShape">TypedShape</a><'_></h4></section></summary><div class='docblock'>Gets the underlying shape as an enum.</div></details><section id="method.ccd_thickness" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.ccd_thickness" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_thickness" class="fn">ccd_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><section id="method.ccd_angular_thickness" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.ccd_angular_thickness" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_angular_thickness" class="fn">ccd_angular_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.as_support_map" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.as_support_map" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_support_map" class="fn">as_support_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>></h4></section></summary><div class='docblock'>Converts this shape into its support mapping, if it has one.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_polygonal_feature_map" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1563-1573">Source</a><a href="#method.as_polygonal_feature_map" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_polygonal_feature_map" class="fn">as_polygonal_feature_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&dyn <a class="trait" href="trait.PolygonalFeatureMap.html" title="trait parry3d::shape::PolygonalFeatureMap">PolygonalFeatureMap</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>)></h4></section></summary><div class='docblock'>Converts this shape to a polygonal feature-map, if it is one.</div></details><details class="toggle method-toggle" open><summary><section id="method.clone_box" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#336-338">Source</a><a href="#method.clone_box" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.clone_box" class="fn">clone_box</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: renamed to <code>clone_dyn</code></span></div></span><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#method.clone_box">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_bounding_sphere" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#359-361">Source</a><a href="#method.compute_bounding_sphere" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_bounding_sphere" class="fn">compute_bounding_sphere</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape with the given position.</div></details><section id="method.as_composite_shape" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#397-399">Source</a><a href="#method.as_composite_shape" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_composite_shape" class="fn">as_composite_shape</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SimdCompositeShape.html" title="trait parry3d::shape::SimdCompositeShape">SimdCompositeShape</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.feature_normal_at_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#411-417">Source</a><a href="#method.feature_normal_at_point" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.feature_normal_at_point" class="fn">feature_normal_at_point</a>(
|
||
&self,
|
||
_feature: <a class="enum" href="enum.FeatureId.html" title="enum parry3d::shape::FeatureId">FeatureId</a>,
|
||
_point: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../nalgebra/base/unit/struct.Unit.html" title="struct nalgebra::base::unit::Unit">Unit</a><<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>></h4></section></summary><div class='docblock'>The shape’s normal at the given point located on a specific feature.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_swept_aabb" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#421-425">Source</a><a href="#method.compute_swept_aabb" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_swept_aabb" class="fn">compute_swept_aabb</a>(
|
||
&self,
|
||
start_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
end_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the swept <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape, i.e., the space it would occupy by moving from
|
||
the given start position to the given end position.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Shape-for-RoundShape%3CCylinder%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#impl-Shape-for-RoundShape%3CCylinder%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.Cylinder.html" title="struct parry3d::shape::Cylinder">Cylinder</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_dyn-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.clone_dyn-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.clone_dyn" class="fn">clone_dyn</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#tymethod.clone_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.scale_dyn-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.scale_dyn-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.scale_dyn" class="fn">scale_dyn</a>(
|
||
&self,
|
||
scale: &<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
num_subdivisions: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>>></h4></section></summary><div class='docblock'>Scales this shape by <code>scale</code> into a boxed trait-object. <a href="trait.Shape.html#tymethod.scale_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_aabb-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.compute_local_aabb-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_aabb" class="fn">compute_local_aabb</a>(&self) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_bounding_sphere-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.compute_local_bounding_sphere-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_bounding_sphere" class="fn">compute_local_bounding_sphere</a>(&self) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_aabb-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.compute_aabb-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_aabb" class="fn">compute_aabb</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape with the given position.</div></details><details class="toggle method-toggle" open><summary><section id="method.mass_properties-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.mass_properties-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.mass_properties" class="fn">mass_properties</a>(&self, density: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="../mass_properties/struct.MassProperties.html" title="struct parry3d::mass_properties::MassProperties">MassProperties</a></h4></section></summary><div class='docblock'>Compute the mass-properties of this shape given its uniform density.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_convex-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.is_convex-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.is_convex" class="fn">is_convex</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Is this shape known to be convex? <a href="trait.Shape.html#method.is_convex">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.shape_type-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.shape_type-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.shape_type" class="fn">shape_type</a>(&self) -> <a class="enum" href="enum.ShapeType.html" title="enum parry3d::shape::ShapeType">ShapeType</a></h4></section></summary><div class='docblock'>Gets the type tag of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_typed_shape-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.as_typed_shape-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.as_typed_shape" class="fn">as_typed_shape</a>(&self) -> <a class="enum" href="enum.TypedShape.html" title="enum parry3d::shape::TypedShape">TypedShape</a><'_></h4></section></summary><div class='docblock'>Gets the underlying shape as an enum.</div></details><section id="method.ccd_thickness-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.ccd_thickness-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_thickness" class="fn">ccd_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><section id="method.ccd_angular_thickness-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.ccd_angular_thickness-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_angular_thickness" class="fn">ccd_angular_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.as_support_map-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.as_support_map-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_support_map" class="fn">as_support_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>></h4></section></summary><div class='docblock'>Converts this shape into its support mapping, if it has one.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_polygonal_feature_map-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1602-1625">Source</a><a href="#method.as_polygonal_feature_map-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_polygonal_feature_map" class="fn">as_polygonal_feature_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&dyn <a class="trait" href="trait.PolygonalFeatureMap.html" title="trait parry3d::shape::PolygonalFeatureMap">PolygonalFeatureMap</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>)></h4></section></summary><div class='docblock'>Converts this shape to a polygonal feature-map, if it is one.</div></details><details class="toggle method-toggle" open><summary><section id="method.clone_box-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#336-338">Source</a><a href="#method.clone_box-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.clone_box" class="fn">clone_box</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: renamed to <code>clone_dyn</code></span></div></span><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#method.clone_box">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_bounding_sphere-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#359-361">Source</a><a href="#method.compute_bounding_sphere-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_bounding_sphere" class="fn">compute_bounding_sphere</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape with the given position.</div></details><section id="method.as_composite_shape-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#397-399">Source</a><a href="#method.as_composite_shape-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_composite_shape" class="fn">as_composite_shape</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SimdCompositeShape.html" title="trait parry3d::shape::SimdCompositeShape">SimdCompositeShape</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.feature_normal_at_point-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#411-417">Source</a><a href="#method.feature_normal_at_point-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.feature_normal_at_point" class="fn">feature_normal_at_point</a>(
|
||
&self,
|
||
_feature: <a class="enum" href="enum.FeatureId.html" title="enum parry3d::shape::FeatureId">FeatureId</a>,
|
||
_point: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../nalgebra/base/unit/struct.Unit.html" title="struct nalgebra::base::unit::Unit">Unit</a><<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>></h4></section></summary><div class='docblock'>The shape’s normal at the given point located on a specific feature.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_swept_aabb-2" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#421-425">Source</a><a href="#method.compute_swept_aabb-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_swept_aabb" class="fn">compute_swept_aabb</a>(
|
||
&self,
|
||
start_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
end_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the swept <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape, i.e., the space it would occupy by moving from
|
||
the given start position to the given end position.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Shape-for-RoundShape%3CTriangle%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#impl-Shape-for-RoundShape%3CTriangle%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><<a class="struct" href="struct.Triangle.html" title="struct parry3d::shape::Triangle">Triangle</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_dyn-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.clone_dyn-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.clone_dyn" class="fn">clone_dyn</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#tymethod.clone_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.scale_dyn-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.scale_dyn-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.scale_dyn" class="fn">scale_dyn</a>(
|
||
&self,
|
||
scale: &<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
num_subdivisions: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>>></h4></section></summary><div class='docblock'>Scales this shape by <code>scale</code> into a boxed trait-object. <a href="trait.Shape.html#tymethod.scale_dyn">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_aabb-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.compute_local_aabb-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_aabb" class="fn">compute_local_aabb</a>(&self) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_local_bounding_sphere-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.compute_local_bounding_sphere-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.compute_local_bounding_sphere" class="fn">compute_local_bounding_sphere</a>(&self) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_aabb-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.compute_aabb-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_aabb" class="fn">compute_aabb</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape with the given position.</div></details><details class="toggle method-toggle" open><summary><section id="method.mass_properties-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.mass_properties-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.mass_properties" class="fn">mass_properties</a>(&self, density: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="../mass_properties/struct.MassProperties.html" title="struct parry3d::mass_properties::MassProperties">MassProperties</a></h4></section></summary><div class='docblock'>Compute the mass-properties of this shape given its uniform density.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_convex-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.is_convex-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.is_convex" class="fn">is_convex</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Is this shape known to be convex? <a href="trait.Shape.html#method.is_convex">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.shape_type-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.shape_type-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.shape_type" class="fn">shape_type</a>(&self) -> <a class="enum" href="enum.ShapeType.html" title="enum parry3d::shape::ShapeType">ShapeType</a></h4></section></summary><div class='docblock'>Gets the type tag of this shape.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_typed_shape-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.as_typed_shape-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.as_typed_shape" class="fn">as_typed_shape</a>(&self) -> <a class="enum" href="enum.TypedShape.html" title="enum parry3d::shape::TypedShape">TypedShape</a><'_></h4></section></summary><div class='docblock'>Gets the underlying shape as an enum.</div></details><section id="method.ccd_thickness-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.ccd_thickness-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_thickness" class="fn">ccd_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><section id="method.ccd_angular_thickness-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.ccd_angular_thickness-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#tymethod.ccd_angular_thickness" class="fn">ccd_angular_thickness</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.as_support_map-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.as_support_map-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_support_map" class="fn">as_support_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>></h4></section></summary><div class='docblock'>Converts this shape into its support mapping, if it has one.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_polygonal_feature_map-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#1575-1585">Source</a><a href="#method.as_polygonal_feature_map-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_polygonal_feature_map" class="fn">as_polygonal_feature_map</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&dyn <a class="trait" href="trait.PolygonalFeatureMap.html" title="trait parry3d::shape::PolygonalFeatureMap">PolygonalFeatureMap</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>)></h4></section></summary><div class='docblock'>Converts this shape to a polygonal feature-map, if it is one.</div></details><details class="toggle method-toggle" open><summary><section id="method.clone_box-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#336-338">Source</a><a href="#method.clone_box-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.clone_box" class="fn">clone_box</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Shape.html" title="trait parry3d::shape::Shape">Shape</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: renamed to <code>clone_dyn</code></span></div></span><div class='docblock'>Clones this shape into a boxed trait-object. <a href="trait.Shape.html#method.clone_box">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.compute_bounding_sphere-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#359-361">Source</a><a href="#method.compute_bounding_sphere-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_bounding_sphere" class="fn">compute_bounding_sphere</a>(&self, position: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="struct" href="../bounding_volume/struct.BoundingSphere.html" title="struct parry3d::bounding_volume::BoundingSphere">BoundingSphere</a></h4></section></summary><div class='docblock'>Computes the bounding-sphere of this shape with the given position.</div></details><section id="method.as_composite_shape-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#397-399">Source</a><a href="#method.as_composite_shape-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.as_composite_shape" class="fn">as_composite_shape</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.SimdCompositeShape.html" title="trait parry3d::shape::SimdCompositeShape">SimdCompositeShape</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.feature_normal_at_point-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#411-417">Source</a><a href="#method.feature_normal_at_point-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.feature_normal_at_point" class="fn">feature_normal_at_point</a>(
|
||
&self,
|
||
_feature: <a class="enum" href="enum.FeatureId.html" title="enum parry3d::shape::FeatureId">FeatureId</a>,
|
||
_point: &<a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../nalgebra/base/unit/struct.Unit.html" title="struct nalgebra::base::unit::Unit">Unit</a><<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>></h4></section></summary><div class='docblock'>The shape’s normal at the given point located on a specific feature.</div></details><details class="toggle method-toggle" open><summary><section id="method.compute_swept_aabb-1" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/shape.rs.html#421-425">Source</a><a href="#method.compute_swept_aabb-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Shape.html#method.compute_swept_aabb" class="fn">compute_swept_aabb</a>(
|
||
&self,
|
||
start_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
end_pos: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="struct" href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb">Aabb</a></h4></section></summary><div class='docblock'>Computes the swept <a href="../bounding_volume/struct.Aabb.html" title="struct parry3d::bounding_volume::Aabb"><code>Aabb</code></a> of this shape, i.e., the space it would occupy by moving from
|
||
the given start position to the given end position.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-SupportMap-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#21-29">Source</a><a href="#impl-SupportMap-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a>> <a class="trait" href="trait.SupportMap.html" title="trait parry3d::shape::SupportMap">SupportMap</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S></h3></section></summary><div class="impl-items"><section id="method.local_support_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#22-24">Source</a><a href="#method.local_support_point" class="anchor">§</a><h4 class="code-header">fn <a href="trait.SupportMap.html#tymethod.local_support_point" class="fn">local_support_point</a>(&self, dir: &<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>) -> <a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.local_support_point_toward" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#26-28">Source</a><a href="#method.local_support_point_toward" class="anchor">§</a><h4 class="code-header">fn <a href="trait.SupportMap.html#method.local_support_point_toward" class="fn">local_support_point_toward</a>(&self, dir: &<a class="struct" href="../../nalgebra/base/unit/struct.Unit.html" title="struct nalgebra::base::unit::Unit">Unit</a><<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>) -> <a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>></h4></section></summary><div class='docblock'>Same as <code>self.local_support_point</code> except that <code>dir</code> is normalized.</div></details><section id="method.support_point" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/support_map.rs.html#26-29">Source</a><a href="#method.support_point" class="anchor">§</a><h4 class="code-header">fn <a href="trait.SupportMap.html#method.support_point" class="fn">support_point</a>(
|
||
&self,
|
||
transform: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
dir: &<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> <a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.support_point_toward" class="method trait-impl"><a class="src rightside" href="../../src/parry3d/shape/support_map.rs.html#32-39">Source</a><a href="#method.support_point_toward" class="anchor">§</a><h4 class="code-header">fn <a href="trait.SupportMap.html#method.support_point_toward" class="fn">support_point_toward</a>(
|
||
&self,
|
||
transform: &<a class="type" href="../math/type.Isometry.html" title="type parry3d::math::Isometry">Isometry</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
dir: &<a class="struct" href="../../nalgebra/base/unit/struct.Unit.html" title="struct nalgebra::base::unit::Unit">Unit</a><<a class="type" href="../math/type.Vector.html" title="type parry3d::math::Vector">Vector</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>>,
|
||
) -> <a class="type" href="../math/type.Point.html" title="type parry3d::math::Point">Point</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>></h4></section></summary><div class='docblock'>Same as <code>self.support_point</code> except that <code>dir</code> is normalized.</div></details></div></details><section id="impl-Copy-for-RoundShape%3CS%3E" class="impl"><a class="src rightside" href="../../src/parry3d/shape/round_shape.rs.html#11">Source</a><a href="#impl-Copy-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-RoundShape%3CS%3E" class="impl"><a href="#impl-Freeze-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-RoundShape%3CS%3E" class="impl"><a href="#impl-RefUnwindSafe-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-RoundShape%3CS%3E" class="impl"><a href="#impl-Send-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-RoundShape%3CS%3E" class="impl"><a href="#impl-Sync-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-RoundShape%3CS%3E" class="impl"><a href="#impl-Unpin-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-RoundShape%3CS%3E" class="impl"><a href="#impl-UnwindSafe-for-RoundShape%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.RoundShape.html" title="struct parry3d::shape::RoundShape">RoundShape</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Downcast-for-T" class="impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#189">Source</a><a href="#impl-Downcast-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../downcast_rs/trait.Downcast.html" title="trait downcast_rs::Downcast">Downcast</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#190">Source</a><a href="#method.into_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.into_any" class="fn">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>></h4></section></summary><div class='docblock'>Convert <code>Box<dyn Trait></code> (where <code>Trait: Downcast</code>) to <code>Box<dyn Any></code>. <code>Box<dyn Any></code> can
|
||
then be further <code>downcast</code> into <code>Box<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_any_rc" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#191">Source</a><a href="#method.into_any_rc" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.into_any_rc" class="fn">into_any_rc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>></h4></section></summary><div class='docblock'>Convert <code>Rc<Trait></code> (where <code>Trait: Downcast</code>) to <code>Rc<Any></code>. <code>Rc<Any></code> can then be
|
||
further <code>downcast</code> into <code>Rc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#192">Source</a><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.as_any" class="fn">as_any</a>(&self) -> &(dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&Trait</code> (where <code>Trait: Downcast</code>) to <code>&Any</code>. This is needed since Rust cannot
|
||
generate <code>&Any</code>’s vtable from <code>&Trait</code>’s.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any_mut" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#193">Source</a><a href="#method.as_any_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.as_any_mut" class="fn">as_any_mut</a>(&mut self) -> &mut (dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&mut Trait</code> (where <code>Trait: Downcast</code>) to <code>&Any</code>. This is needed since Rust cannot
|
||
generate <code>&mut Any</code>’s vtable from <code>&mut Trait</code>’s.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DowncastSync-for-T" class="impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#203">Source</a><a href="#impl-DowncastSync-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../downcast_rs/trait.DowncastSync.html" title="trait downcast_rs::DowncastSync">DowncastSync</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any_arc" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#204">Source</a><a href="#method.into_any_arc" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc" class="fn">into_any_arc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>></h4></section></summary><div class='docblock'>Convert <code>Arc<Trait></code> (where <code>Trait: Downcast</code>) to <code>Arc<Any></code>. <code>Arc<Any></code> can then be
|
||
further <code>downcast</code> into <code>Arc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="../../src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="../../src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="../../either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="../../either/enum.Either.html" title="enum either::Either">Either</a><Self, Self></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left</code> is <code>true</code>.
|
||
Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="../../either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="../../src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="../../either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a><F>(self, into_left: F) -> <a class="enum" href="../../either/enum.Either.html" title="enum either::Either">Either</a><Self, Self><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left(&self)</code> returns <code>true</code>.
|
||
Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="../../either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="../../src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../../src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="../../typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SupersetOf%3CSS%3E-for-SP" class="impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#87">Source</a><a href="#impl-SupersetOf%3CSS%3E-for-SP" class="anchor">§</a><h3 class="code-header">impl<SS, SP> <a class="trait" href="../../simba/scalar/subset/trait.SupersetOf.html" title="trait simba::scalar::subset::SupersetOf">SupersetOf</a><SS> for SP<div class="where">where
|
||
SS: <a class="trait" href="../../simba/scalar/subset/trait.SubsetOf.html" title="trait simba::scalar::subset::SubsetOf">SubsetOf</a><SP>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_subset" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#89">Source</a><a href="#method.to_subset" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#method.to_subset" class="fn">to_subset</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><SS></h4></section></summary><div class='docblock'>The inverse inclusion map: attempts to construct <code>self</code> from the equivalent element of its
|
||
superset. <a href="../../simba/scalar/subset/trait.SupersetOf.html#method.to_subset">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_in_subset" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#94">Source</a><a href="#method.is_in_subset" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#tymethod.is_in_subset" class="fn">is_in_subset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if <code>self</code> is actually part of its subset <code>T</code> (and can be converted to it).</div></details><details class="toggle method-toggle" open><summary><section id="method.to_subset_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#99">Source</a><a href="#method.to_subset_unchecked" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#tymethod.to_subset_unchecked" class="fn">to_subset_unchecked</a>(&self) -> SS</h4></section></summary><div class='docblock'>Use with care! Same as <code>self.to_subset</code> but without any property checks. Always succeeds.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_subset" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#104">Source</a><a href="#method.from_subset" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#tymethod.from_subset" class="fn">from_subset</a>(element: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&SS</a>) -> SP</h4></section></summary><div class='docblock'>The inclusion map: converts <code>self</code> to the equivalent element of its superset.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="../../src/serde/de/mod.rs.html#614">Source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||
T: for<'de> <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section></div></section></div></main></body></html> |