Struct bevy_math::primitives::Polyline3d
source · pub struct Polyline3d<const N: usize> {
pub vertices: [Vec3; N],
}
Expand description
A series of connected line segments in 3D space.
For a version without generics: BoxedPolyline3d
Fields§
§vertices: [Vec3; N]
The vertices of the polyline
Implementations§
source§impl<const N: usize> Polyline3d<N>
impl<const N: usize> Polyline3d<N>
sourcepub fn new(vertices: impl IntoIterator<Item = Vec3>) -> Self
pub fn new(vertices: impl IntoIterator<Item = Vec3>) -> Self
Create a new Polyline3d
from its vertices
Trait Implementations§
source§impl<const N: usize> Bounded3d for Polyline3d<N>
impl<const N: usize> Bounded3d for Polyline3d<N>
source§fn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d
fn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d
Get an axis-aligned bounding box for the shape with the given translation and rotation
source§fn bounding_sphere(&self, translation: Vec3, rotation: Quat) -> BoundingSphere
fn bounding_sphere(&self, translation: Vec3, rotation: Quat) -> BoundingSphere
Get a bounding sphere for the shape with the given translation and rotation
source§impl<const N: usize> Clone for Polyline3d<N>
impl<const N: usize> Clone for Polyline3d<N>
source§fn clone(&self) -> Polyline3d<N>
fn clone(&self) -> Polyline3d<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<const N: usize> Debug for Polyline3d<N>
impl<const N: usize> Debug for Polyline3d<N>
source§impl<'de, const N: usize> Deserialize<'de> for Polyline3d<N>
impl<'de, const N: usize> Deserialize<'de> for Polyline3d<N>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<const N: usize> FromIterator<Vec3> for Polyline3d<N>
impl<const N: usize> FromIterator<Vec3> for Polyline3d<N>
source§impl<const N: usize> PartialEq for Polyline3d<N>
impl<const N: usize> PartialEq for Polyline3d<N>
source§fn eq(&self, other: &Polyline3d<N>) -> bool
fn eq(&self, other: &Polyline3d<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<const N: usize> Serialize for Polyline3d<N>
impl<const N: usize> Serialize for Polyline3d<N>
impl<const N: usize> Primitive3d for Polyline3d<N>
impl<const N: usize> StructuralPartialEq for Polyline3d<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for Polyline3d<N>
impl<const N: usize> Send for Polyline3d<N>
impl<const N: usize> Sync for Polyline3d<N>
impl<const N: usize> Unpin for Polyline3d<N>
impl<const N: usize> UnwindSafe for Polyline3d<N>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more