3
I have a class called functions.Cs
I need to create a property that stores the initial X,Y and final X,Y values, I thought:
public double[] PosicaoInicialXY { get; set; }
public double[] PosicaoFinallXY { get; set; }
then send the parameters like this:
double[] valoresFinalXY = new double[2];
valoresFinalXY[0] = 40;
valoresFinalXY[1] = 5;
funcoes.PosicaoFinallXY = valoresFinalXY;
and also for the incial position
Doubt: How could you create a new property that subtracts initial X,Y - final X,Y ?
double[] resultado = this.PosicaoInicialXY - this.PosicaoFinallXY; //??? não deu certo
Perfect, just one more question, why re-turn new[] ?
– Dorathoto