示例#1
0
 internal static Vector2 TransformPoint(ref DRect r, Vector2 p)
 {
     return(new Vector2((float)(r.width * p.x + r.x), (float)(r.height * p.y + r.y)));
 }
示例#2
0
 public static float TransformX(DRect r, double x)
 {
     return((float)(r.width * x + r.x));
 }