public class ActionTranslate
extends <any>
Modifier and Type | Class and Description |
---|---|
static class |
ActionTranslate.TranslateType |
Modifier and Type | Field and Description |
---|---|
protected float |
mFromPointX
开始的x点 OpenGL坐标 (0,0)在屏幕中央 节点的锚点是(0.5,0.5)
|
protected float |
mFromPointY
开始的y点
|
protected float |
mToPointX
到的x点
|
protected float |
mToPointY
到的y点
|
protected int |
mTranslateType |
Constructor and Description |
---|
ActionTranslate() |
Modifier and Type | Method and Description |
---|---|
float |
getFromPointX()
获取x轴起点坐标
|
float |
getFromPointY()
获取y轴起点坐标
|
float |
getToPointX()
获取x轴终点坐标
|
float |
getToPointY()
获取y轴终点坐标
|
void |
setFromPointX(float mFromPointX)
设置x轴起点坐标,以中心为原点
屏幕坐标点-1到1
|
void |
setFromPointY(float mFromPointY)
设置y轴起点坐标,以中心为原点
屏幕坐标点-1到1
|
void |
setToPointX(float mToPointX)
设置x轴结束坐标,以中心为原点
屏幕坐标点-1到1
|
void |
setToPointY(float mToPointY)
设置y轴的结束坐标,以中心为原点
|
void |
setTranslateType(ActionTranslate.TranslateType aTranslateType) |
protected float mFromPointX
protected float mFromPointY
protected float mToPointX
protected float mToPointY
protected int mTranslateType
public float getFromPointX()
public void setFromPointX(float mFromPointX)
mFromPointX
- public float getFromPointY()
public void setFromPointY(float mFromPointY)
mFromPointY
- public float getToPointX()
public void setToPointX(float mToPointX)
mToPointX
- public float getToPointY()
public void setToPointY(float mToPointY)
mToPointY
- public void setTranslateType(ActionTranslate.TranslateType aTranslateType)