Meteor is math.radians,math.degrees exist -


did math functionality exist in meteor.if please me how convert degree radians.i have convert latitude , longitude values degrees radians.

yes.

if want on server use meteor.methods

if(meteor.isserver) { meteor.methods({    radians: function (degrees) {    return degrees * math.pi / 180; },  degree : function(radians) {    return radians * 180 / math.pi;   }     }); } 

or on client use this.

if(meteor.isclient) {    var convertradians = function (degrees) {       return degrees * math.pi / 180;     };    var convertdegrees = function (degrees) {        return radians * 180 / math.pi;     }; } 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -