pub struct Scale<S, T> {
pub shape: S,
pub scale: T,
}Expand description
Scale around the center of shape’s bounding box
Fields§
§shape: S§scale: TTrait Implementations§
Source§impl<T, S> BoundingBox<T> for Scale<S, T>where
S: BoundingBox<T>,
T: Float,
impl<T, S> BoundingBox<T> for Scale<S, T>where
S: BoundingBox<T>,
T: Float,
fn bounding_box(&self) -> Box2D<T, WorldSpace>
impl<S: Copy, T: Copy> Copy for Scale<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for Scale<S, T>
impl<S, T> RefUnwindSafe for Scale<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for Scale<S, T>
impl<S, T> Sync for Scale<S, T>
impl<S, T> Unpin for Scale<S, T>
impl<S, T> UnwindSafe for Scale<S, T>where
S: UnwindSafe,
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.