コード例 #1
0
 /// <summary>
 /// Writes a value for the <c>direction</c> property as a <c>spherical</c> value.  The <c>direction</c> property specifies the direction of the vector.
 /// </summary>
 /// <param name="value">The value.</param>
 public void WriteDirectionProperty(Spherical value)
 {
     using (var writer = OpenDirectionProperty())
     {
         writer.WriteSpherical(value);
     }
 }
コード例 #2
0
        /// <summary>
        /// Writes the value expressed as a <c>spherical</c>, which is the direction specified as a spherical value <c>[Clock, Cone, Magnitude]</c>, with angles in radians and magnitude in meters.  The clock angle is measured in the XY plane from the positive X axis toward the positive Y axis.  The cone angle is the angle from the positive Z axis toward the negative Z axis.
        /// </summary>
        /// <param name="value">The value.</param>
        public void WriteSpherical(Spherical value)
        {
            const string PropertyName = SphericalPropertyName;

            OpenIntervalIfNecessary();
            Output.WritePropertyName(PropertyName);
            CesiumWritingHelper.WriteSpherical(Output, value);
        }
コード例 #3
0
 /// <summary>
 /// Initializes a set of <see cref="UnitSpherical"/> coordinates from a <see cref="Spherical"/> instance.
 /// <param name="spherical">An existing Spherical instance.</param>
 /// </summary>
 public UnitSpherical(Spherical spherical) :
     this(spherical.Clock, spherical.Cone)
 {
 }
コード例 #4
0
ファイル: UnitSpherical.cs プロジェクト: yescape/czml-writer
 /// <summary>
 /// Initializes a set of <see cref="UnitSpherical"/> coordinates from the provided set of
 /// <see cref="Spherical"/> coordinates.
 /// </summary>
 /// <param name="coordinates">The set of Spherical coordinates.</param>
 public UnitSpherical(Spherical coordinates)
 {
     m_clock = coordinates.Clock;
     m_cone  = coordinates.Cone;
 }