Struct UVTransform
Defines how an UV channel is transformed.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public record struct UVTransform : IEquatable<UVTransform>
Constructors
| Edit this page View SourceUVTransform(Vector2, Vector2, float)
Defines how an UV channel is transformed.
Declaration
public UVTransform(Vector2 Translation, Vector2 Scaling, float Rotation)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | Translation | Translation on the U and V axes. Default is 0|0. |
Vector2 | Scaling | Scaling on the U and V axes. Default is 1|1. |
float | Rotation | Rotation in counter-clockwise direction, specified in radians. The rotation center is 0.5f|0.5f and the default value is zero. |
Properties
| Edit this page View SourceRotation
Rotation in counter-clockwise direction, specified in radians. The rotation center is 0.5f|0.5f and the default value is zero.
Declaration
public float Rotation { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
Scaling
Scaling on the U and V axes. Default is 1|1.
Declaration
public Vector2 Scaling { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Translation
Translation on the U and V axes. Default is 0|0.
Declaration
public Vector2 Translation { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector2 |