コード例 #1
0
        public static Wektor2D operator *(Wektor2D v1, Wektor2D v2)
        {
            var resultVector = new Wektor3D <int>(v1.A, v1.B, 0) * new Wektor3D <int>(v2.A, v2.B, 0);

            return(new Wektor2D(resultVector.A, resultVector.B));
        }
コード例 #2
0
 public Wektor2D(int a, int b)
 {
     _wektor3D = new Wektor3D <int>(a, b, 0);
 }