Struct openconfiguration::GeometryMapping
source · 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: f64translation_t: f64rotation: f64scale_s: f64default value = 1
scale_t: f64default value = 1
Trait Implementations
sourceimpl Clone for GeometryMapping
impl Clone for GeometryMapping
sourcefn clone(&self) -> GeometryMapping
fn clone(&self) -> GeometryMapping
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for GeometryMapping
impl Debug for GeometryMapping
sourceimpl<'de> Deserialize<'de> for GeometryMapping
impl<'de> Deserialize<'de> for GeometryMapping
sourcefn 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
sourceimpl PartialEq<GeometryMapping> for GeometryMapping
impl PartialEq<GeometryMapping> for GeometryMapping
sourcefn eq(&self, other: &GeometryMapping) -> bool
fn eq(&self, other: &GeometryMapping) -> bool
sourceimpl Serialize for GeometryMapping
impl Serialize for GeometryMapping
impl StructuralPartialEq for GeometryMapping
Auto Trait Implementations
impl RefUnwindSafe for GeometryMapping
impl Send for GeometryMapping
impl Sync for GeometryMapping
impl Unpin for GeometryMapping
impl UnwindSafe for GeometryMapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more