C# 클래스 Zeplin.Transformation

Defines spatial properties for art assets
파일 보기 프로젝트 열기: zumpiez/Zeplin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Pivot Vector2
Position Vector2
Rotation float
Scale Vector2

공개 메소드들

메소드 설명
Equals ( object obj ) : bool
GetHashCode ( ) : int
Transformation ( ) : System
Transformation ( Transformation old ) : System
Transformation ( Vector2 position, Vector2 scale, float rotation ) : System

Constructs a transformation with the most common elements (position, scale, rotation)

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

Constructs a transformation with position, scale, rotation and custom pivot

There are some problems that occur with non-centered pivots. Looking into this.

operator ( ) : bool

메소드 상세

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Transformation() 공개 메소드

public Transformation ( ) : System
리턴 System

Transformation() 공개 메소드

public Transformation ( Transformation old ) : System
old Transformation
리턴 System

Transformation() 공개 메소드

Constructs a transformation with the most common elements (position, scale, rotation)
public Transformation ( Vector2 position, Vector2 scale, float rotation ) : System
position Vector2 The object's position in world space
scale Vector2 The object's scale factors
rotation float Degrees rotated, in radians
리턴 System

Transformation() 공개 메소드

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
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Pivot 공개적으로 프로퍼티

The object's pivot point in object space.
public Vector2 Pivot
리턴 Vector2

Position 공개적으로 프로퍼티

The object's position in world coordinates
public Vector2 Position
리턴 Vector2

Rotation 공개적으로 프로퍼티

The object's rotaton in radians
public float Rotation
리턴 float

Scale 공개적으로 프로퍼티

The object's X and Y scale factors
public Vector2 Scale
리턴 Vector2