function DegreesConverter() {
	this.className = "DegreesConverter";
	this.pi = Math.PI;

	this.degreesToRadians = function(degree) {
		return this.de_ra(this.de60_de10(degree));
	}
	
	this.radiansToDegrees = function(radians) {
		return this.de10_de60(this.ra_de(radians));
	}
	
	this.de60_de10 = function(degree60) {	// 60° 45' 53''
		return degree60.degrees + degree60.minutes / 60 + degree60.seconds / 3600;
	}
	this.de10_de60 = function(degree10) {	// 60.764722222222225 °
		var segno = '';
		if (degree10<0) { segno = '-'; }
		degree10 = Math.abs(degree10);
		var myDegrees = Math.floor(degree10);	//60
		var myMinutes = (degree10 - Math.abs(myDegrees)) * 60;	// 0,894234 * 60 = 89
		var mySeconds = (myMinutes - Math.floor(myMinutes)) * 60;  
		return {degrees: segno + myDegrees, minutes: Math.floor(myMinutes), seconds: mySeconds };
	}
	this.ra_de = function(radian) {
		return radian*(180/this.pi);
	}
	this.de_ra = function(degree10) {
		return degree10*(this.pi/180);
	}
}
