Struct bevy_math::primitives::Line3d
source · pub struct Line3d {
pub direction: Direction3d,
}
Expand description
An infinite line along a direction in 3D space.
For a finite line: Segment3d
Fields§
§direction: Direction3d
The direction of the line
Trait Implementations§
source§impl Bounded3d for Line3d
impl Bounded3d for Line3d
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<'de> Deserialize<'de> for Line3d
impl<'de> Deserialize<'de> for Line3d
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 PartialEq for Line3d
impl PartialEq for Line3d
impl Copy for Line3d
impl Primitive3d for Line3d
impl StructuralPartialEq for Line3d
Auto Trait Implementations§
impl RefUnwindSafe for Line3d
impl Send for Line3d
impl Sync for Line3d
impl Unpin for Line3d
impl UnwindSafe for Line3d
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