Jak poruszać punktem po płaszczyźnie? Chodzi mi o to, aby punkt przechodził do zadanych współrzędnych.
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace ConsoleApplication15
{
class Program
{
static void Main(string[] args)
{
WriteLine("Podaj wspolrzedne punktu = x i y");
double x = double.Parse(ReadLine());
double y = double.Parse(ReadLine());
Point xy = new Point(x ,y);
ReadKey();
}
}
}
--------klasa-------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication15
{
public class Point
{
public double _wspolrzednaX;
public double _wspolrzednaY;
public Point(double wspolrzednax, double wspolrzednay)
{
_wspolrzednaX = wspolrzednax;
_wspolrzednaY = wspolrzednay;
}
}
}