Add clarifying comments

This commit is contained in:
SiboVG 2023-02-21 03:13:27 +01:00
parent f63acc25fe
commit 09918a3d22

View File

@ -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 ){
@ -23,6 +23,7 @@ public enum RadiusMethod implements DistanceMethod {
} }
}, },
// 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; }
@ -38,6 +39,7 @@ public enum RadiusMethod implements DistanceMethod {
} }
}, },
// 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; }