Beispiel #1
0
 public Vector2D(Size2D size)
 {
     Angle  = (double)Math.Atan2(size.Height, size.Width);
     Length = (double)Math.Sqrt(size.Height * size.Height + size.Width * size.Width);
 }
Beispiel #2
0
 public Vector2D(Size2D size)
 {
     Angle = (double)Math.Atan2(size.Height, size.Width);
     Length = (double)Math.Sqrt(size.Height * size.Height + size.Width * size.Width);
 }