예제 #1
0
        /// <summary>
        /// Writes the value expressed as a <c>cartesian2</c>, which is the pixel offset specified as a two-dimensional Cartesian value <c>[X, Y]</c>, in viewport coordinates in pixels, where X is pixels to the right and Y is pixels up.
        /// </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 WriteCartesian2(IList <JulianDate> dates, IList <Rectangular> values, int startIndex, int length)
        {
            const string PropertyName = Cartesian2PropertyName;

            OpenIntervalIfNecessary();
            CesiumWritingHelper.WriteCartesian2(Output, PropertyName, dates, values, startIndex, length);
        }
예제 #2
0
        /// <summary>
        /// Writes the value expressed as a <c>cartesian2</c>, which is the pixel offset specified as a two-dimensional Cartesian value <c>[X, Y]</c>, in viewport coordinates in pixels, where X is pixels to the right and Y is pixels up.
        /// </summary>
        /// <param name="value">The value.</param>
        public void WriteCartesian2(Rectangular value)
        {
            const string PropertyName = Cartesian2PropertyName;

            OpenIntervalIfNecessary();
            Output.WritePropertyName(PropertyName);
            CesiumWritingHelper.WriteCartesian2(Output, value);
        }