project(x, y, z, scale = 0)
	{
		let scaleFactor = scale;
		
		if(scale == 0)
		{
			scaleFactor = this.getDist(x, y, z);
		}
		
		let outputX = (x * scaleFactor) + this.mid.x;
		let outputY = (y * scaleFactor) + this.mid.y;
		
		return({"x":outputX, "y":outputY});
	}
// Projects 3d coordinates onto a 2d plane.

Projects 3d coordinates onto a 2d plane.
Projects 3d coordinates onto a 2d plane .
project(x, y, z, scale = 0)
	{
		let scaleFactor = scale;
		if(scale == 0)
		{
			scaleFactor = this.getDist(x, y, z);
		}
		let outputX = (x * scaleFactor) + this.mid.x;
		let outputY = (y * scaleFactor) + this.mid.y;
		return({"x":outputX, "y":outputY});
	}
project ( x , y , z , scale = 0 ) { let scaleFactor = scale ; if ( scale == 0 ) { scaleFactor = this . getDist ( x , y , z ) ; } let outputX = ( x * scaleFactor ) + this . mid . x ; let outputY = ( y * scaleFactor ) + this . mid . y ; return ( { "x" : outputX , "y" : outputY } ) ; }
Projects 3d coordinates onto a 2d plane.
Projects 3d coordinates onto a 2d plane .