Altered angle helper.
--- a/KerbalEngineer/Flight/Readouts/Rendezvous/RelativeSpeed.cs
+++ b/KerbalEngineer/Flight/Readouts/Rendezvous/RelativeSpeed.cs
@@ -34,7 +34,7 @@
this.Name = "Relative Speed";
this.Category = ReadoutCategory.GetCategory("Rendezvous");
this.HelpString = "Shows the difference in orbital speed between your vessel and the target object.";
- this.IsDefault = false;
+ this.IsDefault = true;
}
#endregion
--- a/KerbalEngineer/Flight/Readouts/Rendezvous/RelativeVelocity.cs
+++ b/KerbalEngineer/Flight/Readouts/Rendezvous/RelativeVelocity.cs
@@ -33,8 +33,8 @@
{
this.Name = "Relative Velocity";
this.Category = ReadoutCategory.GetCategory("Rendezvous");
- this.HelpString = "Shows the relative orbital velocity between your vessel and the target object.";
- this.IsDefault = false;
+ this.HelpString = "Shows the relative velocity between your vessel and the target object.";
+ this.IsDefault = true;
}
#endregion
--- a/KerbalEngineer/Flight/Readouts/Rendezvous/RendezvousProcessor.cs
+++ b/KerbalEngineer/Flight/Readouts/Rendezvous/RendezvousProcessor.cs
@@ -108,6 +108,12 @@
/// Gets the relative orbital velocity between the vessel and target.
/// </summary>
public static double RelativeVelocity { get; private set; }
+
+ public static double RelativeVelocityForward { get; private set; }
+
+ public static double RelativeVelocityRight { get; private set; }
+
+ public static double RelativeVelocityUp { get; private set; }
/// <summary>
/// Gets the semi-major axis of the target orbit.
--- a/KerbalEngineer/Helpers/AngleHelper.cs
+++ b/KerbalEngineer/Helpers/AngleHelper.cs
@@ -49,16 +49,15 @@
return value;
}
- public static double GetAngleBetweenVectors(Vector3d vector1, Vector3d vector2)
+ public static double GetAngleBetweenVectors(Vector3d left, Vector3d right)
{
- var angle = Vector3d.Angle(vector1, vector2);
- var rotated = QuaternionD.AngleAxis(90.0, Vector3d.forward) * vector1;
+ var angle = Vector3d.Angle(left, right);
+ var rotated = QuaternionD.AngleAxis(90.0, Vector3d.forward) * right;
- if (Vector3d.Angle(rotated, vector2) > 90.0)
+ if (Vector3d.Angle(rotated, left) > 90.0)
{
- angle = 360.0 - angle;
+ return 360.0 - angle;
}
-
return angle;
}
--- a/Output/CHANGES.txt
+++ b/Output/CHANGES.txt
@@ -1,3 +1,11 @@
+1.0.8.0
+ Added: New readouts to the vessel category:
+ - Intake Air (Usage)
+
+ Added: New readouts to the rendezvous category:
+ - Relative Velocity
+ - Relative Speed
+
1.0.7.1
Changed: Reversed Intake Air readout from 'S/D' to 'D/S' for easier reading.
Changed: Increased Intake Air readout precision to 4 decimal places.
Binary files a/Output/KerbalEngineer/KerbalEngineer.dll and b/Output/KerbalEngineer/KerbalEngineer.dll differ