package com.nodename.delaunay{	//Credit to Paul Bourke (pbourke@swin.edu.au) for the original Fortran 77 Program :))	//Converted to a standalone C# 2.0 library by Morten Nielsen (www.iter.dk)	//Check out: http://astronomy.swin.edu.au/~pbourke/terrain/triangulate/	//You can use this code however you like providing the above credits remain in tact	/**	 * @author nicoptere	 * http://en.nicoptere.net/	 */	import net.nicoptere.delaunay.DelaunayPoint;	public class Triangle 	{		//points of the triangle		public var p1:DelaunayPoint;		public var p2:DelaunayPoint;		public var p3:DelaunayPoint;				//gravity center		public var center:DelaunayPoint;				//middle of the sides		public var mid0:DelaunayPoint;		public var mid1:DelaunayPoint;		public var mid2:DelaunayPoint;				public function Triangle( p1:DelaunayPoint, p2:DelaunayPoint, p3:DelaunayPoint )		{					this.p1 = p1;			this.p2 = p2;			this.p3 = p3;						center = new DelaunayPoint((p1.x + p2.x + p3.x)/3, (p1.y + p2.y + p3.y)/3);			mid0 = new DelaunayPoint((p1.x + p2.x)/2, (p1.y + p2.y)/2);			mid1 = new DelaunayPoint((p2.x + p3.x)/2, (p2.y + p3.y)/2);			mid2 = new DelaunayPoint((p3.x + p1.x)/2, (p3.y + p1.y)/2);		}			}}