I wrote this Triangle class in C#, and I have a function that returns the area, but it's not returning the correct number a lot of the time. It's based on the coordinate geometry formula: area = the absolute value of Ax(By - Cy) + Bx(Cy - Ay) + Cx(Ay - By) divided by 2. Can you help me find the problem?

using System.Windows;
void Main()
{
	var t = new Triangle(new Point(0,0), new Point(0,2),new Point(2,0));
	Console.WriteLine(t.Area);//expected 2
	
	t = new Triangle(new Point(10,17), new Point(25,5),new Point(28,19));
	Console.WriteLine(t.Area);//expected 123
}

class Triangle
{
	private Point v1, v2, v3;
	
	public Triangle(Point v1, Point v2, Point v3)
	{
		this.v1 = v1;
		this.v2 = v2;
		this.v3 = v3;
	}
	
	public double Area
	{
		get
		{			
			return Math.Abs(v1.X * (v2.Y - v3.Y) + 
			v2.X * (v3.Y - v1.Y) + 
			v3.X * (v1.Y - v2.Y) / 2);
		}
	}
}

system
maine is tribhuj varg ko C#main likhaa he, or mere paas ek fnction he jo kshetra ko lautaata he, lekin yah sahi sankhya main bahut samay nahin lautaa rahaa he.yah samanvay jyamiti formula par aadhaarit he: kshetra = kulhadi kaa nirpeksh maan (by - saai) + bx (cy - ay) + cx (ay - by) dwaara vibhajit 2. kya aap mujhe samasya khojane main madad kar sakate hai?

System.windows kaa upyog karnaa;
shunya mukhya ()
{
var t = nayaa tribhuj (nayaa bindu (0,0), nayaa bindu (0,2), nayaa bindu (2,0));
Console.writeline (t.area); // apekshit 2

tii = nayaa tribhuj (nayaa bindu (10,17), nayaa bindu (25,5), nayaa bindu (28,19));
Console.writeline (t.area); // apekshit 123
}

varg tribhuj
{
nijee bindu v1, v2, v3;

saarvajanik tribhuj (bindu V1, bindu V2, bindu V3)
{
this.v1 = v1;
this.v2 = v2;
this.v3 = v3;
}

saarvajanik doharaa kshetra
{
paanaa
{
Math.abs (v1.x * (v2.y - v3.y) + lauten
v2.x * (v3.y - v1.y) +
v3.x * (v1.y - v2.y) / 2);
}
}
}
user
aisa lagata he ki kshetra ke sutara main 2 se aapkaa divijan galat he.aapke dwaara sanderbhit samanvay sutara ke anusaar, ek saath abhivyakt teen utpaadon ke nirpeksh mulya ko do se vibhajit kiya janaa chahie.vartmaan code ke saath, keval antim utpaada ko vibhajit kiya ja rahaa he.aap samasya ko thik karne ke bajaay iskaa upyog kar sakate hai:

saarvajanik doharaa kshetra
        {
                paanaa
                {
                        Math.abs (v1.x * (v2.y - v3.y) + lauten
                        v2.x * (v3.y - v1.y) +
                        v3.x * (v1.y - v2.y)) / 2;
                }
        }
assistant
<|system|>
</s>
<|user|>
maine is tribhuj varg ko C#main likhaa he, or mere paas ek fnction he jo kshetra ko lautaata he, lekin yah sahi sankhya main bahut samay nahin lautaa rahaa he.yah samanvay jyamiti formula par aadhaarit he: kshetra = kulhadi kaa nirpeksh maan (by - saai) + bx (cy - ay) + cx (ay - by) dwaara vibhajit 2. kya aap mujhe samasya khojane main madad kar sakate hai?

System.windows kaa upyog karnaa;
shunya mukhya ()
{
var t = nayaa tribhuj (nayaa bindu (0,0), nayaa bindu (0,2), nayaa bindu (2,0));
Console.writeline (t.area); // apekshit 2

tii = nayaa tribhuj (nayaa bindu (10,17), nayaa bindu (25,5), nayaa bindu (28,19));
Console.writeline (t.area); // apekshit 123
}

varg tribhuj
{
nijee bindu v1, v2, v3;

saarvajanik tribhuj (bindu V1, bindu V2, bindu V3)
{
this.v1 = v1;
this.v2 = v2;
this.v3 = v3;
}

saarvajanik doharaa kshetra
{
paanaa
{
Math.abs (v1.x * (v2.y - v3.y) + lauten
v2.x * (v3.y - v1.y) +
v3.x * (v1.y - v2.y) / 2);
}
}
}</s>
<|assistant|>
aisa lagata he ki kshetra ke sutara main 2 se aapkaa divijan galat he.aapke dwaara sanderbhit samanvay sutara ke anusaar, ek saath abhivyakt teen utpaadon ke nirpeksh mulya ko do se vibhajit kiya janaa chahie.vartmaan code ke saath, keval antim utpaada ko vibhajit kiya ja rahaa he.aap samasya ko thik karne ke bajaay iskaa upyog kar sakate hai:

saarvajanik doharaa kshetra
        {
                paanaa
                {
                        Math.abs (v1.x * (v2.y - v3.y) + lauten
                        v2.x * (v3.y - v1.y) +
                        v3.x * (v1.y - v2.y)) / 2;
                }
        }</s>
