Exemplo n.º 1
0
        public Vector2D(Coordinate2D coordinate2D)
        {
            Coordinate2D = coordinate2D;

            Length = Math.Sqrt(Math.Pow(Coordinate2D.X, 2) + Math.Pow(Coordinate2D.Y, 2));
            Corner = Math.Asin(Coordinate2D.Y/Length);
        }
Exemplo n.º 2
0
 public Vector2D(double length, double corner)
 {
     Length = length;
     Corner = corner;
     Coordinate2D = new Coordinate2D(Math.Cos(corner)*length, Math.Sin(corner)*length);
 }