Closed GoogleCodeExporter closed 9 years ago
Yes you are right. Thats some legacy code that I haven't used myself.
The correct Area calculation code should be:
public double Area()
{
double a = (Points[0].X - Points[2].X)*(Points[1].Y - Points[0].Y);
double b = (Points[0].X - Points[1].X)*(Points[2].Y - Points[0].Y);
return 0.5f*Math.Abs(a-b);
}
Original comment by thahlen@gmail.com
on 2 May 2011 at 8:57
Original issue reported on code.google.com by
ewa...@googlemail.com
on 2 May 2011 at 7:36