[cleanup] cleans up some whitespace and redundant variables in FlightConfiguration
This commit is contained in:
parent
8a14d98fcc
commit
a9afb829ef
@ -295,19 +295,14 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
|
|||||||
|
|
||||||
// generate the Instance's Context:
|
// generate the Instance's Context:
|
||||||
for(int currentInstanceNumber=0; currentInstanceNumber < instanceCount; currentInstanceNumber++) {
|
for(int currentInstanceNumber=0; currentInstanceNumber < instanceCount; currentInstanceNumber++) {
|
||||||
|
final Transformation offsetTransform = Transformation.getTranslationTransform( allOffsets[currentInstanceNumber] );
|
||||||
final Coordinate instanceOffset = allOffsets[currentInstanceNumber];
|
final Transformation angleTransform = Transformation.getAxialRotation(allAngles[currentInstanceNumber]);
|
||||||
final Transformation offsetTransform = Transformation.getTranslationTransform( instanceOffset );
|
|
||||||
|
|
||||||
final double instanceAngle = allAngles[currentInstanceNumber];
|
|
||||||
final Transformation angleTransform = Transformation.getAxialRotation(instanceAngle);
|
|
||||||
|
|
||||||
final Transformation currentTransform = componentTransform.applyTransformation(offsetTransform)
|
final Transformation currentTransform = componentTransform.applyTransformation(offsetTransform)
|
||||||
.applyTransformation(angleTransform);
|
.applyTransformation(angleTransform);
|
||||||
|
|
||||||
// constructs entry in-place
|
// constructs entry in-place
|
||||||
results.emplace(component, active, currentInstanceNumber, currentTransform);
|
results.emplace(component, active, currentInstanceNumber, currentTransform);
|
||||||
|
|
||||||
for(RocketComponent child : component.getChildren()) {
|
for(RocketComponent child : component.getChildren()) {
|
||||||
getContextListAt(child, results, currentTransform);
|
getContextListAt(child, results, currentTransform);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user