Exemple #1
0
 /// <summary>
 /// Transforms a point from FRAME geometry into Euclidean geometry
 /// </summary>
 /// <param name="pointToTransform">point that is to be transformed</param>
 /// <param name="refWidth">width of the component</param>
 /// <param name="refHeight">height of the component</param>
 /// <returns></returns>
 public static FPoint TransformPointToFrame(FPoint pointToTransform, double refWidth, double refHeight)
 {
     return(new FPoint(pointToTransform.X + refWidth / 2, refHeight / 2 - pointToTransform.Y));
 }