pub struct TriplanarUVs {
pub uv_xy: Vec2,
pub uv_xz: Vec2,
pub uv_yz: Vec2,
pub weight_xy: f32,
pub weight_xz: f32,
pub weight_yz: f32,
}Expand description
Result of a triplanar projection.
Fields§
§uv_xy: Vec2UV coordinates for the XY plane.
uv_xz: Vec2UV coordinates for the XZ plane.
uv_yz: Vec2UV coordinates for the YZ plane.
weight_xy: f32Blend weight for XY plane.
weight_xz: f32Blend weight for XZ plane.
weight_yz: f32Blend weight for YZ plane.
Implementations§
Trait Implementations§
Source§impl Clone for TriplanarUVs
impl Clone for TriplanarUVs
Source§fn clone(&self) -> TriplanarUVs
fn clone(&self) -> TriplanarUVs
Returns a duplicate 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 TriplanarUVs
impl Debug for TriplanarUVs
impl Copy for TriplanarUVs
Auto Trait Implementations§
impl Freeze for TriplanarUVs
impl RefUnwindSafe for TriplanarUVs
impl Send for TriplanarUVs
impl Sync for TriplanarUVs
impl Unpin for TriplanarUVs
impl UnsafeUnpin for TriplanarUVs
impl UnwindSafe for TriplanarUVs
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> 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.