PageSourceSearch

https://cowan.ca/wp-content/plugins/photo-gallery/js/3DEngine/Sphere.js?ver=1.0.0

js cowan.ca collected 2026-10-06 13:41:11 UTC 522 bytes, 18 lines download raw bytes

1var Sphere = function (radius, sides, numOfItems){
2  
3	for (var j = sides ; j > 0; j--){	
4		for (var i = numOfItems / sides ; i > 0; i--)
5		{
6      var angle = i * Math.PI / (numOfItems / sides + 1);
7      var angleB = j * Math.PI * 2 / (sides);
8			
9      var x =   Math.sin(angleB) * Math.sin(angle) * radius;
10			var y =  Math.cos(angleB) * Math.sin(angle) * radius;
11			var z =  Math.cos(angle) * radius;
12      
13      this.pointsArray.push(this.make3DPoint(x,y,z));
14		}	
15	};
16};
17
18Sphere.prototype = new DisplayObject3D();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.