Zeplin.Transformation.Transformation C# (CSharp) Method

Transformation() public method

Constructs a transformation with position, scale, rotation and custom pivot
There are some problems that occur with non-centered pivots. Looking into this.
public Transformation ( Vector2 position, Vector2 scale, float rotation, Vector2 pivot ) : System
position Vector2 The object's position in world space
scale Vector2 The object's scale factors
rotation float Degrees rotated, in radians
pivot Vector2 The pivot point, in object space
return System
        public Transformation(Vector2 position, Vector2 scale, float rotation, Vector2 pivot)
        {
            this.Position = position;
            this.Scale = scale;
            this.Rotation = rotation;
            this.Pivot = pivot;
            this.depth = 1;
        }

Same methods

Transformation::Transformation ( ) : System
Transformation::Transformation ( Transformation old ) : System
Transformation::Transformation ( Vector2 position, Vector2 scale, float rotation ) : System