Creating a toolbar of globe tools
PointGeometry.cs
// Copyright 2010 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 

using ESRI.ArcGIS.Geometry;

namespace GlobeGraphicsToolbar
{
    public class PointGeometry
    {
        private IGeometry _geometry;

        public PointGeometry(double longitude, double latitude, double altitudeInKilometers, ISpatialReference spatialReference)
        {
            _geometry = GetGeometry(longitude, latitude, altitudeInKilometers, spatialReference);
        }

        private IGeometry GetGeometry(double longitude, double latitude, double altitudeInKilometers, ISpatialReference spatialReference)
        {
            IGeometry geometry;

            IPoint point = new PointClass();

            point.X = longitude;
            point.Y = latitude;
            point.Z = altitudeInKilometers;

            point.SpatialReference = spatialReference;

            geometry = point as IGeometry;

            MakeZAware(geometry);

            return geometry;
        }

        private void MakeZAware(IGeometry geometry)
        {
            IZAware zAware = geometry as IZAware;
            zAware.ZAware = true;
        }

        public IGeometry Geometry
        {
            get { return _geometry; }
        }
    }
}