0
我试图找出,如何工作this code。我的代码中使用了什么样的规范化?
public class UnPoint
{
public int X, Y;
public float x, y;
public float v;
public static float X_MIN = -1f;
public static float X_MAX = 1f;
public static float Y_MIN = 0f;
public static float Y_MAX = 1f;
public UnPoint(int XX, int YY, int w, int h)
{
X = XX;
Y = YY;
x = (X_MAX-X_MIN)/((float)(w-1)) * ((float)X) + X_MIN;
y = (Y_MAX-Y_MIN)/((float)(h-1))*((float)((h-1) - Y)) + Y_MIN;
}
}
什么是X,Y?我认为,这是一种正常化。但我没有找到这种类型。
我很乐意提供任何建议。
谢谢你的回答。 – Jordan