コード例 #1
0
        public CarteseanCoordinate ToCartesean()
        {
            double radius = this.Latitude + LAT_OFFSET;
            CarteseanCoordinate cartCoord = new CarteseanCoordinate(Math.Cos(this.Longitude.Radians), Math.Sin(this.Longitude.Radians), 1.0);

            return(cartCoord);
        }
コード例 #2
0
        public CarteseanCoordinate ToCartesean()
        {
            double radius = this.Altitude + ALT_OFFSET;
            CarteseanCoordinate cartCoord = new CarteseanCoordinate(Math.Cos(this.Azimuth.Radians), Math.Sin(this.Azimuth.Radians), 1.0);

            return(cartCoord);
        }
コード例 #3
0
        public CarteseanCoordinate ToCartesean(Angle latitude, bool affineTaki = true)
        {
            CarteseanCoordinate cartCoord;

            if (affineTaki)
            {
                // Get Polar (or should than be get AltAzimuth) from Equatorial coordinate (formerly call to EQ_SphericalPolar)
                AltAzCoordinate polar = AstroConvert.GetAltAz(this, latitude);
                // Get  Cartesean from Polar (formerly call to EQ_Polar2Cartes)
                cartCoord = polar.ToCartesean();
            }
            else
            {
                cartCoord = new CarteseanCoordinate(this.RightAscension.Radians, this.Declination.Radians, 1.0);
            }
            return(cartCoord);
        }