mattlundstrom
6/15/2012 - 7:27 PM

Flash Interpoint

Flash Interpoint

function calulateInterpoint(p1:Point,p2:Point,percent:Number ):Point
{
	var temporaryPoint:Point = new Point;
	temporaryPoint.x = p1.x + ( p2.x - p1.x ) / (100/percent)
	temporaryPoint.y = p1.y + ( p2.y - p1.y ) / (100/percent)
	return temporaryPoint;
}