pub struct ParticleInstance {
pub region: Rect<f32, f32>,
pub page: f32,
pub tint: Rgba<f32>,
pub transform: Transform<f32, f32, f32>,
pub size: Vec2<f32>,
pub pivot: Vec2<f32>,
}
Fields§
§region: Rect<f32, f32>
§page: f32
§tint: Rgba<f32>
§transform: Transform<f32, f32, f32>
§size: Vec2<f32>
§pivot: Vec2<f32>
Implementations§
Source§impl ParticleInstance
impl ParticleInstance
pub fn region_page(self, region: Rect<f32, f32>, page: f32) -> Self
pub fn tint(self, value: Rgba<f32>) -> Self
pub fn transform(self, value: Transform<f32, f32, f32>) -> Self
pub fn position(self, value: Vec2<f32>) -> Self
pub fn orientation(self, value: Quaternion<f32>) -> Self
pub fn rotation(self, angle_radians: f32) -> Self
pub fn scale(self, value: Vec2<f32>) -> Self
pub fn size(self, value: Vec2<f32>) -> Self
pub fn pivot(self, value: Vec2<f32>) -> Self
Trait Implementations§
Source§impl Clone for ParticleInstance
impl Clone for ParticleInstance
Source§fn clone(&self) -> ParticleInstance
fn clone(&self) -> ParticleInstance
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParticleInstance
impl Debug for ParticleInstance
Auto Trait Implementations§
impl Freeze for ParticleInstance
impl RefUnwindSafe for ParticleInstance
impl Send for ParticleInstance
impl Sync for ParticleInstance
impl Unpin for ParticleInstance
impl UnwindSafe for ParticleInstance
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