/// <summary> /// Writes the value expressed as a <c>nearFarScalar</c>, which is the value specified as four values <c>[NearDistance, NearValue, FarDistance, FarValue]</c>, with distances in eye coordinates in meters. /// </summary> /// <param name="dates">The dates at which the value is specified.</param> /// <param name="values">The values corresponding to each date.</param> /// <param name="startIndex">The index of the first element to write.</param> /// <param name="length">The number of elements to write.</param> public void WriteNearFarScalar(IList <JulianDate> dates, IList <NearFarScalar> values, int startIndex, int length) { const string PropertyName = NearFarScalarPropertyName; OpenIntervalIfNecessary(); CesiumWritingHelper.WriteNearFarScalar(Output, PropertyName, dates, values, startIndex, length); }
/// <summary> /// Writes the value expressed as a <c>nearFarScalar</c>, which is the value specified as four values <c>[NearDistance, NearValue, FarDistance, FarValue]</c>, with distances in eye coordinates in meters. /// </summary> /// <param name="value">The value.</param> public void WriteNearFarScalar(NearFarScalar value) { const string PropertyName = NearFarScalarPropertyName; OpenIntervalIfNecessary(); Output.WritePropertyName(PropertyName); CesiumWritingHelper.WriteNearFarScalar(Output, value); }