Add clarifying comments
This commit is contained in:
		
							parent
							
								
									f63acc25fe
								
							
						
					
					
						commit
						09918a3d22
					
				| @ -10,7 +10,7 @@ public enum RadiusMethod implements DistanceMethod { | |||||||
| 	// just as a reminder: | 	// just as a reminder: | ||||||
| 	// public T[] getEnumConstants() | 	// public T[] getEnumConstants() | ||||||
| 
 | 
 | ||||||
| 	// both components are on the same axis | 	// Same axis as the target component | ||||||
| 	COAXIAL ( Application.getTranslator().get("RocketComponent.Position.Method.Radius.COAXIAL") ){ | 	COAXIAL ( Application.getTranslator().get("RocketComponent.Position.Method.Radius.COAXIAL") ){ | ||||||
| 		@Override | 		@Override | ||||||
| 		public double getRadius( final RocketComponent parentComponent, final RocketComponent thisComponent, final double requestedOffset ){ | 		public double getRadius( final RocketComponent parentComponent, final RocketComponent thisComponent, final double requestedOffset ){ | ||||||
| @ -22,7 +22,8 @@ public enum RadiusMethod implements DistanceMethod { | |||||||
| 			return 0; | 			return 0; | ||||||
| 		} | 		} | ||||||
| 	}, | 	}, | ||||||
| 	 | 
 | ||||||
|  | 	// Center of the parent component | ||||||
| 	FREE(Application.getTranslator().get("RocketComponent.Position.Method.Radius.FREE") ){ | 	FREE(Application.getTranslator().get("RocketComponent.Position.Method.Radius.FREE") ){ | ||||||
| 		@Override | 		@Override | ||||||
| 		public boolean clampToZero() { return false; } | 		public boolean clampToZero() { return false; } | ||||||
| @ -37,7 +38,8 @@ public enum RadiusMethod implements DistanceMethod { | |||||||
| 			return radius; | 			return radius; | ||||||
| 		} | 		} | ||||||
| 	}, | 	}, | ||||||
| 	 | 
 | ||||||
|  | 	// Surface of the parent component | ||||||
| 	RELATIVE ( Application.getTranslator().get("RocketComponent.Position.Method.Radius.RELATIVE") ){ | 	RELATIVE ( Application.getTranslator().get("RocketComponent.Position.Method.Radius.RELATIVE") ){ | ||||||
| 		@Override | 		@Override | ||||||
| 		public boolean clampToZero() { return false; } | 		public boolean clampToZero() { return false; } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user