示例#1
0
 public static SKPoint ToSKPoint(this RatioPoint sKRatioPoint, float containerWidth, float containerHeight)
 {
     return(new SKPoint(sKRatioPoint.XRatio * containerWidth, sKRatioPoint.YRatio * containerHeight));
 }
示例#2
0
 public static SKPoint ToSKPoint(this RatioPoint ratioPoint, SKSize containerSize)
 {
     return(new SKPoint(ratioPoint.XRatio * containerSize.Width, ratioPoint.YRatio * containerSize.Height));
 }