corners method
	
		
			
	
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
				
					
				
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
							parent
							
								
									6bda2e5ab4
								
							
						
					
					
						commit
						2f341aaeae
					
				|  | @ -49,6 +49,18 @@ namespace MoonTools.Bonk | |||
|             ); | ||||
|         } | ||||
| 
 | ||||
|         public IEnumerable<Vector3> AABBCorners() | ||||
|         { | ||||
|             yield return Min; | ||||
|             yield return new Vector3(Min.X, Min.Y, Max.Z); | ||||
|             yield return new Vector3(Min.X, Max.Y, Min.Z); | ||||
|             yield return new Vector3(Max.X, Min.Y, Min.Z); | ||||
|             yield return new Vector3(Min.X, Max.Y, Max.Z); | ||||
|             yield return new Vector3(Max.X, Min.Y, Max.Z); | ||||
|             yield return new Vector3(Max.X, Max.Y, Min.Z); | ||||
|             yield return Max; | ||||
|         } | ||||
| 
 | ||||
|         public override bool Equals(object obj) | ||||
|         { | ||||
|             return obj is AABB3D d && Equals(d); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue