Struct batbox_lapp::Ellipse
source · pub struct Ellipse<T> {
pub transform: mat3<T>,
}
Expand description
Fields§
§transform: mat3<T>
Transformation from a unit
Implementations§
Trait Implementations§
source§impl<T: Float> FitTarget2d<T> for Ellipse<T>
impl<T: Float> FitTarget2d<T> for Ellipse<T>
source§fn make_fit(&self, object: &mut impl Transform2d<T>)
fn make_fit(&self, object: &mut impl Transform2d<T>)
Make given object’s bounding Quad fit into self
source§impl<T: Float> Transform2d<T> for Ellipse<T>
impl<T: Float> Transform2d<T> for Ellipse<T>
source§fn bounding_quad(&self) -> Quad<T>
fn bounding_quad(&self) -> Quad<T>
Object’s bounding Quad
source§fn apply_transform(&mut self, transform: mat3<T>)
fn apply_transform(&mut self, transform: mat3<T>)
Apply transformation matrix to this object
Auto Trait Implementations§
impl<T> RefUnwindSafe for Ellipse<T>where
T: RefUnwindSafe,
impl<T> Send for Ellipse<T>where
T: Send,
impl<T> Sync for Ellipse<T>where
T: Sync,
impl<T> Unpin for Ellipse<T>where
T: Unpin,
impl<T> UnwindSafe for Ellipse<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<F, T> Transform2dExt<F> for T
impl<F, T> Transform2dExt<F> for T
source§fn transform(self, transform: mat3<F>) -> Selfwhere
Self: Sized,
fn transform(self, transform: mat3<F>) -> Selfwhere
Self: Sized,
Apply transformation to the object, returning a modified value to allow chaining methods
source§fn align_bounding_box(self, alignment: vec2<F>) -> Selfwhere
Self: Sized,
fn align_bounding_box(self, alignment: vec2<F>) -> Selfwhere
Self: Sized,
Align bounding box of this object, making its origin located at (0, 0) Read more
source§fn rotate(self, angle: Angle<F>) -> Selfwhere
Self: Sized,
fn rotate(self, angle: Angle<F>) -> Selfwhere
Self: Sized,
Rotate object around (0, 0) by given angle
source§fn scale(self, factor: vec2<F>) -> Selfwhere
Self: Sized,
fn scale(self, factor: vec2<F>) -> Selfwhere
Self: Sized,
Scale object around (0, 0) by given factor
source§fn scale_uniform(self, factor: F) -> Selfwhere
Self: Sized,
fn scale_uniform(self, factor: F) -> Selfwhere
Self: Sized,
Scale object around (0, 0) by given factor uniformly along both axis
source§fn transformed(&self) -> Transformed2d<'_, F, Self>
fn transformed(&self) -> Transformed2d<'_, F, Self>
Create a reference to this object with additional transformation applied