src/AircraftTrajectories/Models/Visualisation/KML/AnimationSections/AircraftKMLAnimator.cs
/// <summary>
/// Return a string in KML format containing all updates
/// for the aircraft at the given moment in time
/// </summary>
/// <returns></returns>
Return a string in KML format containing all updates
for the aircraft at the given moment in time
Return a string in KML format containing all updates for the aircraft at the given moment in time
public string KMLAnimationStep(int t)
        {
            GeoPoint3D animationPoint = _trajectory.GeoPoint(t).MoveInDirection(70, (_trajectory.Heading(t) + 210) % 360);
            return @"
            <Location targetId='model_location'>
			    <latitude>" + animationPoint.Latitude + @"</latitude>
			    <longitude>" + animationPoint.Longitude + @"</longitude>
			    <altitude>" + animationPoint.Z + @"</altitude>
            </Location>
            <Orientation targetId='model_orientation'>
                <heading>" + _trajectory.Heading(t) + @"</heading>
                <tilt>" + _trajectory.Tilt(t) + @"</tilt>
                <roll>" + _trajectory.BankAngle(t) + @"</roll>
            </Orientation>
            <Placemark targetId='pin'>
            <name>" + _aircraft.Model.ToString().Remove(_aircraft.Model.ToString().Length - 4) + @" " + Math.Round(animationPoint.Z, 3) +
            @"</name>
            </Placemark>
            <Point targetId='aircraftpin'>
            <coordinates>" + animationPoint.Longitude + @","
            + animationPoint.Latitude + @","
            + (animationPoint.Z + 50) + @"</coordinates>
            </Point>
                      ";
        }
public string KMLAnimationStep ( int t ) { GeoPoint3D animationPoint = _trajectory . GeoPoint ( t ) . MoveInDirection ( 70 , ( _trajectory . Heading ( t ) + 210 ) % 360 ) ; return @"
            <Location targetId='model_location'>
			    <latitude>" + animationPoint . Latitude + @"</latitude>
			    <longitude>" + animationPoint . Longitude + @"</longitude>
			    <altitude>" + animationPoint . Z + @"</altitude>
            </Location>
            <Orientation targetId='model_orientation'>
                <heading>" + _trajectory . Heading ( t ) + @"</heading>
                <tilt>" + _trajectory . Tilt ( t ) + @"</tilt>
                <roll>" + _trajectory . BankAngle ( t ) + @"</roll>
            </Orientation>
            <Placemark targetId='pin'>
            <name>" + _aircraft . Model . ToString ( ) . Remove ( _aircraft . Model . ToString ( ) . Length - 4 ) + @" " + Math . Round ( animationPoint . Z , 3 ) + @"</name>
            </Placemark>
            <Point targetId='aircraftpin'>
            <coordinates>" + animationPoint . Longitude + @"," + animationPoint . Latitude + @"," + ( animationPoint . Z + 50 ) + @"</coordinates>
            </Point>
                      " ; }
Return a string in KML format containing all updates
for the aircraft at the given moment in time
Return a string in KML format containing all updates for the aircraft at the given moment in time
None
t
int