]> git.scottworley.com Git - nt3d/blob - sphere_primitive.html
Handle opposite vectors in rotate_onto
[nt3d] / sphere_primitive.html
1 <html>
2 <head>
3 <title>Sphere primitive</title>
4 <script type="text/javascript" src="nt3d.js"></script>
5 <script type="text/javascript">
6 function sphere_primitive(radius, lattitude_steps, longitude_steps) {
7 return nt3d.sphere([0,0,0], radius, lattitude_steps, longitude_steps);
8 }
9 var params = [["Radius", 1],
10 ["Lattitude steps", 20],
11 ["Longitude steps", 20]];
12 </script>
13 </head>
14 <body onload="nt3d.framework(sphere_primitive, params)">
15 <h1>Sphere primitive</h1>
16 <p>There's a sphere primitive.</p>
17 </body>
18 </html>