pub struct Line<T> {
pub a: Point2D<T, WorldSpace>,
pub b: Point2D<T, WorldSpace>,
pub thickness: T,
}Fields§
§a: Point2D<T, WorldSpace>§b: Point2D<T, WorldSpace>§thickness: TTrait Implementations§
Source§impl<T: Float> BoundingBox<T> for Line<T>
impl<T: Float> BoundingBox<T> for Line<T>
fn bounding_box(&self) -> Box2D<T, WorldSpace>
impl<T: Copy> Copy for Line<T>
Auto Trait Implementations§
impl<T> Freeze for Line<T>where
T: Freeze,
impl<T> RefUnwindSafe for Line<T>where
T: RefUnwindSafe,
impl<T> Send for Line<T>where
T: Send,
impl<T> Sync for Line<T>where
T: Sync,
impl<T> Unpin for Line<T>where
T: Unpin,
impl<T> UnwindSafe for Line<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, Sh> Shape<T> for Shwhere
Sh: SDF<T> + BoundingBox<T>,
impl<T, Sh> Shape<T> for Shwhere
Sh: SDF<T> + BoundingBox<T>,
fn translate(self, offset: V2<T, WorldSpace>) -> Translation<Self, T>where
Self: Sized,
Source§fn rotate(self, angle: Angle<T>) -> Rotation<Self, T>where
Self: Sized,
fn rotate(self, angle: Angle<T>) -> Rotation<Self, T>where
Self: Sized,
Rotate around the center of shape’s bounding box
Source§fn scale(self, scale: T) -> Scale<Self, T>where
Self: Sized,
fn scale(self, scale: T) -> Scale<Self, T>where
Self: Sized,
Scale around the center of shape’s bounding box
Source§fn subtraction<U>(self, other: U) -> Subtraction<Self, U>where
Self: Sized,
fn subtraction<U>(self, other: U) -> Subtraction<Self, U>where
Self: Sized,
Subtracion of two SDFs. Note that this operation is not commutative,
i.e.
Subtraction {a, b} =/= Subtraction {b, a}.Source§fn intersection<U>(self, other: U) -> Intersection<Self, U>where
Self: Sized,
fn intersection<U>(self, other: U) -> Intersection<Self, U>where
Self: Sized,
Intersection of two SDFs.