Example #1
0
        public EquatorialCoords(Quaternion rotation, double radius = 1)
        {
            var euler = rotation.eulerAngles;

            this.declination    = -StarMath.DegZero360To90(euler.x);
            this.rightAscention = (360 - euler.y) * StarMath.deg2hours;
            this.radius         = radius;
        }
        public HorizontalCoords(Quaternion rotation)
        {
            var euler = rotation.eulerAngles;

            this.altitude = -StarMath.DegZero360To90(euler.x);
            this.azimuth  = euler.y;
            this.radius   = 1;
            // Debug.Log($"CoordinatesUI - e: {euler.y}\talt: {altitude}");
        }