Exemple #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);
 }
Exemple #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);
 }