[−][src]Struct bevy::prelude::GlobalTransform
Implementations
impl GlobalTransform
[src]
pub fn new(value: Mat4) -> GlobalTransform
[src]
pub fn identity() -> GlobalTransform
[src]
pub fn from_translation(translation: Vec3) -> GlobalTransform
[src]
pub fn from_rotation(rotation: Quat) -> GlobalTransform
[src]
pub fn from_scale(scale: f32) -> GlobalTransform
[src]
pub fn from_translation_rotation(
translation: Vec3,
rotation: Quat
) -> GlobalTransform
[src]
translation: Vec3,
rotation: Quat
) -> GlobalTransform
pub fn from_translation_rotation_scale(
translation: Vec3,
rotation: Quat,
scale: f32
) -> GlobalTransform
[src]
translation: Vec3,
rotation: Quat,
scale: f32
) -> GlobalTransform
pub fn from_non_uniform_scale(scale: Vec3) -> GlobalTransform
[src]
pub fn with_translation(self, translation: Vec3) -> GlobalTransform
[src]
pub fn with_rotation(self, rotation: Quat) -> GlobalTransform
[src]
pub fn with_scale(self, scale: f32) -> GlobalTransform
[src]
pub fn with_non_uniform_scale(self, scale: Vec3) -> GlobalTransform
[src]
pub fn with_translate(self, translation: Vec3) -> GlobalTransform
[src]
pub fn with_rotate(self, rotation: Quat) -> GlobalTransform
[src]
pub fn with_apply_scale(self, scale: f32) -> GlobalTransform
[src]
pub fn with_apply_non_uniform_scale(self, scale: Vec3) -> GlobalTransform
[src]
pub fn value(&self) -> &Mat4
[src]
pub fn value_mut(&mut self) -> &mut Mat4
[src]
pub fn translation(&self) -> Vec3
[src]
pub fn rotation(&self) -> Quat
[src]
pub fn scale(&self) -> Vec3
[src]
pub fn set_translation(&mut self, translation: Vec3)
[src]
pub fn set_rotation(&mut self, rotation: Quat)
[src]
pub fn set_scale(&mut self, scale: f32)
[src]
pub fn set_non_uniform_scale(&mut self, scale: Vec3)
[src]
pub fn translate(&mut self, translation: Vec3)
[src]
pub fn rotate(&mut self, rotation: Quat)
[src]
pub fn apply_scale(&mut self, scale: f32)
[src]
pub fn apply_non_uniform_scale(&mut self, scale: Vec3)
[src]
Trait Implementations
impl Clone for GlobalTransform
[src]
fn clone(&self) -> GlobalTransform
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GlobalTransform
[src]
impl Debug for GlobalTransform
[src]
impl Default for GlobalTransform
[src]
fn default() -> GlobalTransform
[src]
impl DeserializeProperty for GlobalTransform
[src]
fn deserialize(
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property + 'static>, Error>
[src]
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property + 'static>, Error>
impl Display for GlobalTransform
[src]
impl PartialEq<GlobalTransform> for GlobalTransform
[src]
fn eq(&self, other: &GlobalTransform) -> bool
[src]
fn ne(&self, other: &GlobalTransform) -> bool
[src]
impl Properties for GlobalTransform
[src]
fn prop(&self, name: &str) -> Option<&(dyn Property + 'static)>
[src]
fn prop_mut(&mut self, name: &str) -> Option<&mut (dyn Property + 'static)>
[src]
fn prop_with_index(&self, index: usize) -> Option<&(dyn Property + 'static)>
[src]
fn prop_with_index_mut(
&mut self,
index: usize
) -> Option<&mut (dyn Property + 'static)>
[src]
&mut self,
index: usize
) -> Option<&mut (dyn Property + 'static)>
fn prop_name(&self, index: usize) -> Option<&str>
[src]
fn prop_len(&self) -> usize
[src]
fn iter_props(&self) -> PropertyIter<'_>
[src]
fn set_prop(&mut self, name: &str, value: &(dyn Property + 'static))
[src]
fn to_dynamic(&self) -> DynamicProperties
[src]
impl Property for GlobalTransform
[src]
fn type_name(&self) -> &str
[src]
fn any(&self) -> &(dyn Any + 'static)
[src]
fn any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
fn clone_prop(&self) -> Box<dyn Property + 'static>
[src]
fn set(&mut self, value: &(dyn Property + 'static))
[src]
fn apply(&mut self, value: &(dyn Property + 'static))
[src]
fn as_properties(&self) -> Option<&(dyn Properties + 'static)>
[src]
fn serializable(
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
[src]
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
fn property_type(&self) -> PropertyType
[src]
impl RenderResources for GlobalTransform
[src]
fn render_resources_len(&self) -> usize
[src]
fn get_render_resource(&self, index: usize) -> Option<&dyn RenderResource>
[src]
fn get_render_resource_name(&self, index: usize) -> Option<&str>
[src]
fn iter(&self) -> RenderResourceIterator<'_>
[src]
fn get_render_resource_hints(
&self,
_index: usize
) -> Option<RenderResourceHints>
[src]
&self,
_index: usize
) -> Option<RenderResourceHints>
impl StructuralPartialEq for GlobalTransform
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlobalTransform
impl Send for GlobalTransform
impl Sync for GlobalTransform
impl Unpin for GlobalTransform
impl UnwindSafe for GlobalTransform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> FromResources for T where
T: Default,
[src]
T: Default,
fn from_resources(_resources: &Resources) -> T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> PropertiesVal for P where
P: Properties,
[src]
P: Properties,
fn prop_val<T>(&self, name: &str) -> Option<&T> where
T: 'static,
[src]
T: 'static,
fn set_prop_val<T>(&mut self, name: &str, value: T) where
T: 'static,
[src]
T: 'static,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,