]> git.scottworley.com Git - nt3d/blobdiff - box_by_rotation.html
Explicitly bounds-check in angle_between()
[nt3d] / box_by_rotation.html
index 396c7147a76472b3e1e5e2d61938b130fde6fd85..d575a426717b9ddcb5731473b2d61834f7b28f9c 100644 (file)
@@ -3,8 +3,7 @@
     <title>Box by rotation</title>
     <script type="text/javascript" src="nt3d.js"></script>
     <script type="text/javascript">
     <title>Box by rotation</title>
     <script type="text/javascript" src="nt3d.js"></script>
     <script type="text/javascript">
-      function box_by_rotation(size_as_string) {
-        var size = parseFloat(size_as_string);
+      function box_by_rotation(size) {
         var origin = [0,    0,    0   ];
         var x      = [size, 0,    0   ];
         var y      = [0,    size, 0   ];
         var origin = [0,    0,    0   ];
         var x      = [size, 0,    0   ];
         var y      = [0,    size, 0   ];