Get mid point : Math « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      dojo.require("dojox.math._base");
      
      function testIt() {
        var s = dojox.math.midpoint([2,2],[8,2]);
        alert(s)

      }
    </script>
  </head>
  <body onLoad="testIt();">
  </body>
</html>








29.35.Math
29.35.1.Get mid point
29.35.2.Get range
29.35.3.Get gaussian random number
29.35.4.Convert radian to degree
29.35.5.Convert degree to Radians
29.35.6.Math.standard deviation
29.35.7.Calculate distance for two points