pub struct Union<S1, S2> {
pub s1: S1,
pub s2: S2,
}Expand description
Union of two SDFs.
Fields§
§s1: S1§s2: S2Trait Implementations§
Source§impl<T, S1, S2> BoundingBox<T> for Union<S1, S2>
impl<T, S1, S2> BoundingBox<T> for Union<S1, S2>
fn bounding_box(&self) -> Box2D<T, WorldSpace>
Source§impl<T, S1, S2> SDF<T> for Union<S1, S2>
impl<T, S1, S2> SDF<T> for Union<S1, S2>
fn sdf(&self, pixel: Point2D<T, WorldSpace>) -> T
impl<S1: Copy, S2: Copy> Copy for Union<S1, S2>
Auto Trait Implementations§
impl<S1, S2> Freeze for Union<S1, S2>
impl<S1, S2> RefUnwindSafe for Union<S1, S2>where
S1: RefUnwindSafe,
S2: RefUnwindSafe,
impl<S1, S2> Send for Union<S1, S2>
impl<S1, S2> Sync for Union<S1, S2>
impl<S1, S2> Unpin for Union<S1, S2>
impl<S1, S2> UnwindSafe for Union<S1, S2>where
S1: UnwindSafe,
S2: 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.