Instead of getTubesTouching() returning a boolean telling whether tubes are touching, use getTubeSeparation() returning the actual separation between tubes. This'll work just as well for the current effort, and will be more useful when we consider tubes with separation.
This commit is contained in:
parent
f0d7566690
commit
e8ae279dd3
@ -95,12 +95,12 @@ public class TubeFinSet extends ExternalComponent implements AxialPositionable,
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether the tubes are touching
|
||||
* Return distance between tubes.
|
||||
*
|
||||
* @return true if touching, false if not
|
||||
* @return distance between tubes. 0 if touching, negative if overlap
|
||||
*/
|
||||
public boolean getTubesTouching() {
|
||||
return getOuterRadius() > getTouchingRadius() - MathUtil.EPSILON;
|
||||
public double getTubeSeparation() {
|
||||
return 2.0*(getTouchingRadius() - getOuterRadius());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user