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)); }