X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Frocketcomponent%2FFinSet.java;h=8d6a77f490b7e027d3b14434fec5bf91bd1cf6fc;hb=23b96c50e7906f26dd5f6108ac5de673b950563a;hp=ea60d417c0c956848b9db166dff5341e04416614;hpb=50f171ab51eae5c91117ebdc9b7a0d43d764ddb5;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/rocketcomponent/FinSet.java b/src/net/sf/openrocket/rocketcomponent/FinSet.java index ea60d417..8d6a77f4 100644 --- a/src/net/sf/openrocket/rocketcomponent/FinSet.java +++ b/src/net/sf/openrocket/rocketcomponent/FinSet.java @@ -465,7 +465,7 @@ public abstract class FinSet extends ExternalComponent { /* - * Return an approximation of the longitudal unitary inertia of the fin set. + * Return an approximation of the longitudinal unitary inertia of the fin set. * The process is the following: * * 1. Approximate the fin with a rectangular fin @@ -478,7 +478,7 @@ public abstract class FinSet extends ExternalComponent { * set and multiplied by the number of fins. */ @Override - public double getLongitudalUnitInertia() { + public double getLongitudinalUnitInertia() { double area = getFinArea(); if (MathUtil.equals(area, 0)) return 0; @@ -684,9 +684,7 @@ public abstract class FinSet extends ExternalComponent { @Override - protected void copyFrom(RocketComponent c) { - super.copyFrom(c); - + protected List copyFrom(RocketComponent c) { FinSet src = (FinSet) c; this.fins = src.fins; this.finRotation = src.finRotation; @@ -700,5 +698,7 @@ public abstract class FinSet extends ExternalComponent { this.tabLength = src.tabLength; this.tabRelativePosition = src.tabRelativePosition; this.tabShift = src.tabShift; + + return super.copyFrom(c); } }