pub struct TransformTools;Implementations§
Source§impl TransformTools
impl TransformTools
pub fn translate( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, delta: Vec3, )
pub fn rotate( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, pivot: Vec3, quat: Quat, )
pub fn scale_uniform( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, pivot: Vec3, factor: f32, )
pub fn scale_nonuniform( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, pivot: Vec3, factors: Vec3, )
pub fn mirror( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, pivot: Vec3, axis: Vec3, )
Sourcepub fn bend(
particles: &mut Vec<ModelParticle>,
indices: &HashSet<usize>,
pivot: Vec3,
axis: Vec3,
angle_per_unit: f32,
)
pub fn bend( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, pivot: Vec3, axis: Vec3, angle_per_unit: f32, )
Bend deformation along axis.
Sourcepub fn taper(
particles: &mut Vec<ModelParticle>,
indices: &HashSet<usize>,
pivot: Vec3,
axis: Vec3,
taper_factor: f32,
)
pub fn taper( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, pivot: Vec3, axis: Vec3, taper_factor: f32, )
Taper: scale falloff along axis.
Sourcepub fn twist(
particles: &mut Vec<ModelParticle>,
indices: &HashSet<usize>,
pivot: Vec3,
axis: Vec3,
twist_rate: f32,
)
pub fn twist( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, pivot: Vec3, axis: Vec3, twist_rate: f32, )
Twist: rotate amount proportional to Y (or axis) position.
Sourcepub fn lattice_deform(
particles: &mut Vec<ModelParticle>,
indices: &HashSet<usize>,
lattice: &LatticeDeformer,
)
pub fn lattice_deform( particles: &mut Vec<ModelParticle>, indices: &HashSet<usize>, lattice: &LatticeDeformer, )
Lattice deform: trilinear interpolation through 3D control point grid.
Sourcepub fn proportional_translate(
particles: &mut Vec<ModelParticle>,
selected: &HashSet<usize>,
pivot: Vec3,
delta: Vec3,
radius: f32,
falloff: &FalloffCurve,
)
pub fn proportional_translate( particles: &mut Vec<ModelParticle>, selected: &HashSet<usize>, pivot: Vec3, delta: Vec3, radius: f32, falloff: &FalloffCurve, )
Proportional editing: transform with soft falloff.
pub fn proportional_rotate( particles: &mut Vec<ModelParticle>, selected: &HashSet<usize>, pivot: Vec3, quat: Quat, radius: f32, falloff: &FalloffCurve, )
pub fn proportional_scale( particles: &mut Vec<ModelParticle>, selected: &HashSet<usize>, pivot: Vec3, factor: f32, radius: f32, falloff: &FalloffCurve, )
Auto Trait Implementations§
impl Freeze for TransformTools
impl RefUnwindSafe for TransformTools
impl Send for TransformTools
impl Sync for TransformTools
impl Unpin for TransformTools
impl UnsafeUnpin for TransformTools
impl UnwindSafe for TransformTools
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.