// BLT+A Mover Class Ver.002 -alpha02
function Mover(){
	var a = arguments;
	
	this.sPosition = a[0];
	this.ePosition = a[1];
	this.divCount = a[2];
	this.edging = a[3] / (100 * Math.PI);
	
	this.tmpCount = 0;
	this.distance = this.ePosition.copy();
	this.distance.sub(this.sPosition);
	this.p = this.distance.copy();
}

function MoverMember(){
	M = Mover;
	MP = M.prototype;
	
	MP.position = function(){
		var c = this.tmpCount / this.divCount;
		c = ( c + this.edging * Math.sin( Math.PI * c) );
		this.p.set( this.distance );
		this.p.scale(c);
		this.p.add(this.sPosition);
		return this.p;
	};
	
	MP.count = function(){
		return ( this.tmpCount++<this.divCount ) ? true : false;
	};
} MoverMember();
