Exemplo n.º 1
0
 /// <summary>
 /// Writes a value for the <c>direction</c> property as a <c>unitSpherical</c> value.  The <c>direction</c> property specifies the direction of the vector.
 /// </summary>
 /// <param name="value">The value.</param>
 public void WriteDirectionPropertyUnitSpherical(UnitSpherical value)
 {
     using (var writer = OpenDirectionProperty())
     {
         writer.WriteUnitSpherical(value);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Writes the value expressed as a <code>unitSpherical</code>, which is the axis specified as a unit spherical value `[Clock, Cone]`, in radians.  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 WriteUnitSpherical(UnitSpherical value)
        {
            const string PropertyName = UnitSphericalPropertyName;

            OpenIntervalIfNecessary();
            Output.WritePropertyName(PropertyName);
            CesiumWritingHelper.WriteUnitSpherical(Output, value);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a set of <see cref="UnitCartesian"/> coordinates from the provided set of
 /// <see cref="UnitSpherical"/> coordinates.
 /// </summary>
 /// <param name="unitSpherical">The set of <see cref="UnitSpherical"/> coordinates.</param>
 public UnitCartesian(UnitSpherical unitSpherical)
     : this(unitSpherical.Clock, unitSpherical.Cone)
 {
 }