pub struct ObjectScale {
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
Per-axis scale factors for the object’s 3D model.
Fields§
§x: f32X-axis scale.
y: f32Y-axis scale.
z: f32Z-axis scale.
Implementations§
Source§impl ObjectScale
impl ObjectScale
Sourcepub const fn uniform(v: f32) -> ObjectScale
pub const fn uniform(v: f32) -> ObjectScale
Create a uniform scale (same value on all axes).
Trait Implementations§
Source§impl Clone for ObjectScale
impl Clone for ObjectScale
Source§fn clone(&self) -> ObjectScale
fn clone(&self) -> ObjectScale
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ObjectScale
Source§impl Debug for ObjectScale
impl Debug for ObjectScale
Source§impl Default for ObjectScale
impl Default for ObjectScale
Source§fn default() -> ObjectScale
fn default() -> ObjectScale
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectScale
impl<'de> Deserialize<'de> for ObjectScale
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObjectScale, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObjectScale, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ObjectScale
impl PartialEq for ObjectScale
Source§impl Serialize for ObjectScale
impl Serialize for ObjectScale
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ObjectScale
Auto Trait Implementations§
impl Forget for ObjectScale
impl Freeze for ObjectScale
impl Move for ObjectScale
impl RefUnwindSafe for ObjectScale
impl Send for ObjectScale
impl Sync for ObjectScale
impl Unpin for ObjectScale
impl UnsafeUnpin for ObjectScale
impl UnwindSafe for ObjectScale
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