/// <summary> /// Writes the <code>viewFrom</code> property. The <code>viewFrom</code> property specifies a suggested camera location when viewing this object. The property is specified as a Cartesian position in the East (x), North (y), Up (z) reference frame relative to the objects position property. /// </summary> /// <param name="dates">The dates at which the vector is specified.</param> /// <param name="values">The values corresponding to each date.</param> /// <param name="startIndex">The index of the first element to use in the `values` collection.</param> /// <param name="length">The number of elements to use from the `values` collection.</param> public void WriteViewFrom(IList <JulianDate> dates, IList <Cartesian> values, int startIndex, int length) { const string PropertyName = ViewFromPropertyName; Output.WritePropertyName(PropertyName); CesiumWritingHelper.WriteCartesian3(Output, PropertyName, dates, values, startIndex, length); }
/// <summary> /// Writes the <code>cartesian</code> property. The <code>cartesian</code> property specifies the radii as a Cartesian `[X, Y, Z]` in meters. If the array has three elements, the radii are constant. If it has four or more elements, they are time-tagged samples arranged as `[Time, X, Y, Z, Time, X, Y, Z, Time, X, Y, Z, ...]`, where _Time_ is an ISO 8601 date and time string or seconds since `epoch`. /// </summary> /// <param name="dates">The dates at which the vector is specified.</param> /// <param name="values">The values corresponding to each date.</param> /// <param name="startIndex">The index of the first element to use in the `values` collection.</param> /// <param name="length">The number of elements to use from the `values` collection.</param> public void WriteCartesian(IList <JulianDate> dates, IList <Cartesian> values, int startIndex, int length) { const string PropertyName = CartesianPropertyName; OpenIntervalIfNecessary(); CesiumWritingHelper.WriteCartesian3(Output, PropertyName, dates, values, startIndex, length); }
/// <summary> /// Writes the <code>viewFrom</code> property. The <code>viewFrom</code> property specifies a suggested camera location when viewing this object. The property is specified as a Cartesian position in the East (x), North (y), Up (z) reference frame relative to the objects position property. /// </summary> /// <param name="value">The value.</param> public void WriteViewFrom(Cartesian value) { const string PropertyName = ViewFromPropertyName; Output.WritePropertyName(PropertyName); CesiumWritingHelper.WriteCartesian3(Output, value); }
/// <summary> /// Writes the <code>cartesian</code> property. The <code>cartesian</code> property specifies the eye offset specified as a Cartesian `[X, Y, Z]` position in eye coordinates in meters. If the array has three elements, the eye offset is constant. If it has four or more elements, they are time-tagged samples arranged as `[Time, X, Y, Z, Time, X, Y, Z, Time, X, Y, Z, ...]`, where _Time_ is an ISO 8601 date and time string or seconds since `epoch`. /// </summary> /// <param name="value">The value.</param> public void WriteCartesian(Cartesian value) { const string PropertyName = CartesianPropertyName; OpenIntervalIfNecessary(); Output.WritePropertyName(PropertyName); CesiumWritingHelper.WriteCartesian3(Output, value); }