コード例 #1
0
ファイル: Vector.cs プロジェクト: samverstraete/plotr
 public Vector2D(Size2D size)
 {
     Angle  = (double)Math.Atan2(size.Height, size.Width);
     Length = (double)Math.Sqrt(size.Height * size.Height + size.Width * size.Width);
 }
コード例 #2
0
ファイル: Vector.cs プロジェクト: spustlik/plotr
 public Vector2D(Size2D size)
 {
     Angle = (double)Math.Atan2(size.Height, size.Width);
     Length = (double)Math.Sqrt(size.Height * size.Height + size.Width * size.Width);
 }