public double[] GetPitchingLimits() { List <double> temp = new List <double>(); for (int i = 0; i <= 180; i++) { if (CheckRule(wave.GetApparentWavePeriod(i), ship.GetPitchingPeriod(), 0.8, 1.2)) { temp.Add(i); } } return(new double[] { Accessories.DegreeToRad(temp.First()), Accessories.DegreeToRad(temp.Last()) }); }
public Coordinates GetShipPointInstance() { return(new Coordinates(Accessories.DegreeToRad(m_ship.GetHeadingAngle()), m_radius)); }
public void DisplayLimitsToLabel(Label lbl) { lbl.Content += string.Format($"\n\n{Accessories.RadToDegree(GetRollLimits()[0])}° - {Accessories.RadToDegree(GetRollLimits()[1])}° - основной резонанс бортовой качки" + $"\n{Accessories.RadToDegree(GetPitchingLimits()[0])}° - {Accessories.RadToDegree(GetPitchingLimits()[1])}° - основной резонанс килевой качки"); }