pub struct GeometryMapping {
pub translation_s: f64,
pub translation_t: f64,
pub rotation: f64,
pub scale_s: f64,
pub scale_t: f64,
}Expand description
A Transformation of the UV Set of a Geometry
Ordering S///T///R///V
This order minimizes shearing and improves
the posibility to fix tiling.
Combination with a MaterialMapping looks like this: GS///GT///GR///MR///MS///MT///V
GS .. Matrix of GeometryMapping.Scale/// GT .. Matrix of GeometryMapping.Translation/// GR .. Matrix of GeometryMapping.Rotation
MR .. Matrix of TextureMapping.Rotation MS .. Matrix of TextureMapping.Scale/// MT .. Matrix of TextureMapping.Translation///
V .. (UV)-Vector to be transformed
Rotation is clockwise in degrees
Fields§
§translation_s: f64§translation_t: f64§rotation: f64§scale_s: f64default value = 1
scale_t: f64default value = 1
Trait Implementations§
Source§impl Clone for GeometryMapping
impl Clone for GeometryMapping
Source§fn clone(&self) -> GeometryMapping
fn clone(&self) -> GeometryMapping
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 GeometryMapping
impl Debug for GeometryMapping
Source§impl<'de> Deserialize<'de> for GeometryMapping
impl<'de> Deserialize<'de> for GeometryMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GeometryMapping
impl PartialEq for GeometryMapping
Source§impl Serialize for GeometryMapping
impl Serialize for GeometryMapping
impl StructuralPartialEq for GeometryMapping
Auto Trait Implementations§
impl Freeze for GeometryMapping
impl RefUnwindSafe for GeometryMapping
impl Send for GeometryMapping
impl Sync for GeometryMapping
impl Unpin for GeometryMapping
impl UnwindSafe for GeometryMapping
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