Beispiel #1
0
 public ArcSegment getArc(SKPoint move, float scale, float rot)
 {
     return(new ArcSegment(Transformations.GetTransformed(Start, move, scale, rot),
                           Transformations.GetTransformed(End, move, scale, rot),
                           Transformations.GetTransformed(CenterAbs, move, scale, rot), ClockWise));
 }
Beispiel #2
0
 public SKPoint CanvasToBoard(float x, float y)
 {
     return(Transformations.InvertXY(new SKPoint((x - BottomRight.X) / -Scale, (y - BottomRight.Y) / -Scale)));
 }
Beispiel #3
0
 public LineSegment getLine(SKPoint move, float scale, float rot)
 {
     return(new LineSegment(Transformations.GetTransformed(Start, move, scale, rot),
                            Transformations.GetTransformed(End, move, scale, rot)));
 }