feat: Add 3d rotaion (#126)

* feat: Add 3d rotaion

* feat: add 3d rotation

* feat: add 3d rotation
This commit is contained in:
Hamdi Wanis
2018-09-21 12:52:27 +02:00
committed by Alexander Vakrilov
parent 5f34a5871f
commit 549aaa8218

View File

@@ -465,6 +465,26 @@ public class ViewHelper {
view.setRotation(value); view.setRotation(value);
} }
public static float getRotateX(android.view.View view) {
return view.getRotationX();
}
public static void setRotateX(android.view.View view, float value) {
view.setRotationX(value);
}
public static float getRotateY(android.view.View view) {
return view.getRotationY();
}
public static void setRotateY(android.view.View view, float value) {
view.setRotationY(value);
}
public static void setPerspective(android.view.View view, float value) {
view.setCameraDistance(value);
}
public static float getScaleX(android.view.View view) { public static float getScaleX(android.view.View view) {
return view.getScaleX(); return view.getScaleX();
} }
@@ -529,4 +549,4 @@ public class ViewHelper {
} }
} }
} }