public static WriteCartesian2 ( CesiumOutputStream output, string propertyName, IList |
||
output | CesiumOutputStream | The stream to which to write the array. |
propertyName | string | The name of the property to write. |
dates | IList |
The dates at which the value is specified. |
values | IList |
The corresponding value for each date. |
startIndex | int | The index of the first element to use in the |
length | int | The number of elements to use from the |
return | void |
public static void WriteCartesian2(CesiumOutputStream output, string propertyName, IList<JulianDate> dates, IList<Rectangular> values, int startIndex, int length)
{
if (dates.Count != values.Count)
throw new ArgumentException(CesiumLocalization.MismatchedNumberOfDatesAndValues, "values");
JulianDate epoch = GetAndWriteEpoch(output, dates, startIndex, length);
output.WritePropertyName(propertyName);
output.WriteStartSequence();
int last = startIndex + length;
for (int i = startIndex; i < last; ++i)
{
output.WriteValue(epoch.SecondsDifference(dates[i]));
Rectangular value = values[i];
output.WriteValue(value.X);
output.WriteValue(value.Y);
output.WriteLineBreak();
}
output.WriteEndSequence();
}
CesiumWritingHelper::WriteCartesian2 ( CesiumOutputStream output, Rectangular value ) : void |