Пример #1
0
 public void Deinit()
 {
     // Environment
     StaticAirTemperature.Remove();
     StaticPressure.Remove();
     // Orbit
     Apoapsis.Remove();
     Periapsis.Remove();
     TimeToApoapsis.Remove();
     // Vessel
     Altitude.Remove();
     AngularVelocity.Remove();
     AvailablePosTorque.Remove();
     AvailableRCSForce.Remove();
     AvailableThrust.Remove();
     AvailableTorque.Remove();
     Direction.Remove();
     DryMass.Remove();
     Forward.Remove();
     Mass.Remove();
     MaxVacuumThrust.Remove();
     MomentOfInertia.Remove();
     Position.Remove();
     Right.Remove();
     Thrust.Remove();
     Up.Remove();
     VacuumSpecificImpulse.Remove();
     Velocity.Remove();
 }
Пример #2
0
 public static MomentOfInertia LerpUnclamped(MomentOfInertia a, MomentOfInertia b, float t)
 {
     return(new MomentOfInertia(Mathf.LerpUnclamped(a.Float, b.Float, t)));
 }
Пример #3
0
 public static MomentOfInertia Clamp(MomentOfInertia value, MomentOfInertia min, MomentOfInertia max)
 {
     return(new MomentOfInertia(Mathf.Clamp(value.Float, min.Float, max.Float)));
 }
Пример #4
0
 public static MomentOfInertia Max(MomentOfInertia a, MomentOfInertia b)
 {
     return(new MomentOfInertia(Mathf.Max(a.Float, b.Float)));
 }
Пример #5
0
 public static MomentOfInertia Clamp01(MomentOfInertia value)
 {
     return(new MomentOfInertia(Mathf.Clamp01(value.Float)));
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ElasticBendingProperties"/> class.
        /// </summary>
        /// <param name="extents">The extents.</param>
        /// <param name="centroid">The centroid.</param>
        /// <param name="rotationalInertia">The rotational inertia.</param>
        public ElasticBendingProperties(PointExtents extents, CartesianCoordinate centroid, MomentOfInertia rotationalInertia)
        {
            PointExtents extentsAlignedAtCentroid = CalculateExtentsAlignedAtCentroid(extents, centroid);

            Extents_33positive = NMath.Abs(extentsAlignedAtCentroid.MaxX);
            Extents_33negative = NMath.Abs(extentsAlignedAtCentroid.MinX);
            Extents_22positive = NMath.Abs(extentsAlignedAtCentroid.MaxY);
            Extents_22negative = NMath.Abs(extentsAlignedAtCentroid.MinY);

            S_22positive = CalculateElasticModulus(rotationalInertia.I_22, Extents_33positive);
            S_22negative = CalculateElasticModulus(rotationalInertia.I_22, Extents_33negative);
            S_33positive = CalculateElasticModulus(rotationalInertia.I_33, Extents_22positive);
            S_33negative = CalculateElasticModulus(rotationalInertia.I_33, Extents_22negative);
        }