13 lines
209 B
JavaScript
13 lines
209 B
JavaScript
function Angle(angle_str = "0'")
|
|
{
|
|
Unit.call(this);
|
|
|
|
this.example = "45'";
|
|
|
|
this.degrees = parseFloat(angle_str.replace('\'',''));
|
|
|
|
this.render = function()
|
|
{
|
|
return this.degrees+"'";
|
|
}
|
|
} |