You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							52 lines
						
					
					
						
							1.5 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							52 lines
						
					
					
						
							1.5 KiB
						
					
					
				
								<!DOCTYPE html>
							 | 
						|
								<html lang="it">
							 | 
						|
									<head>
							 | 
						|
										<meta charset="utf-8" />
							 | 
						|
										<base href="../../../" />
							 | 
						|
										<script src="page.js"></script>
							 | 
						|
										<link type="text/css" rel="stylesheet" href="page.css" />
							 | 
						|
									</head>
							 | 
						|
									<body>
							 | 
						|
										<h1>[name]</h1>
							 | 
						|
								
							 | 
						|
										<p class="desc">
							 | 
						|
								      Una classe contenente funzioni di utilità per le forme (shape).<br /><br />
							 | 
						|
								
							 | 
						|
								      Si noti che queste sono tutte funzioni lineari quindi è necessario calcolare separatamente i componenti
							 | 
						|
								      x, y (e z, w se presenti) di un vettore.
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
										<h2>Metodi</h2>
							 | 
						|
								
							 | 
						|
										<h3>[method:Number area]( contour )</h3>
							 | 
						|
										<p>
							 | 
						|
										  contour -- poligono 2D. Un array di THREE.Vector2().<br /><br />
							 | 
						|
								
							 | 
						|
								      Calcola l'area di un poligono di contorno (2D).
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
										<h3>[method:Boolean isClockWise]( pts )</h3>
							 | 
						|
										<p>
							 | 
						|
										  pts -- punti che definiscono un poligono 2D.<br /><br />
							 | 
						|
								
							 | 
						|
								      Si noti che questa è una funzione lineare quindi è necessario calcolare separatamente i componenti 
							 | 
						|
								      x,y di un poligono.<br /><br />
							 | 
						|
								
							 | 
						|
								      Utilizzato internamente da [page:Path Path],
							 | 
						|
								      [page:ExtrudeGeometry ExtrudeGeometry] e [page:ShapeGeometry ShapeGeometry].
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
										<h3>[method:Array triangulateShape]( contour, holes )</h3>
							 | 
						|
										<p>
							 | 
						|
										  contour -- poligono 2D. Un array di [page:Vector2].<br />
							 | 
						|
										  holes -- Un array che contiene array di [page:Vector2]. Ogni array rappresenta una singola definizione di hole.<br /><br />
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
										<h2>Source</h2>
							 | 
						|
								
							 | 
						|
										<p>
							 | 
						|
											[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
							 | 
						|
										</p>
							 | 
						|
									</body>
							 | 
						|
								</html>
							 | 
						|
								
							 |