Beispiel #1
0
 public static int DayOfYear(long absTicks, float longitude)
 {
     return(GenMath.PositiveModRemap(absTicks + LocalTicksOffsetFromLongitude(longitude), 60000, 60));
 }
Beispiel #2
0
 public static Twelfth Twelfth(long absTicks, float longitude)
 {
     return((Twelfth)GenMath.PositiveModRemap(absTicks + LocalTicksOffsetFromLongitude(longitude), 300000, 12));
 }
Beispiel #3
0
 public static int HourOfDay(long absTicks, float longitude)
 {
     return(GenMath.PositiveModRemap(absTicks + LocalTicksOffsetFromLongitude(longitude), 2500, 24));
 }
Beispiel #4
0
        public static int HourInteger(long absTicks, float longitude)
        {
            long x = absTicks + GenDate.LocalTicksOffsetFromLongitude(longitude);

            return(GenMath.PositiveModRemap(x, 2500, 24));
        }
Beispiel #5
0
        public static Twelfth Twelfth(long absTicks, float longitude)
        {
            long x = absTicks + GenDate.LocalTicksOffsetFromLongitude(longitude);

            return((Twelfth)GenMath.PositiveModRemap(x, 300000, 12));
        }
Beispiel #6
0
        public static int DayOfYear(long absTicks, float longitude)
        {
            long x = absTicks + GenDate.LocalTicksOffsetFromLongitude(longitude);

            return(GenMath.PositiveModRemap(x, 60000, 60));
        }
Beispiel #7
0
        public static int DayOfTwelfth(long absTicks, float longitude)
        {
            long x = absTicks + LocalTicksOffsetFromLongitude(longitude);

            return(GenMath.PositiveModRemap(x, 60000, 5));
        }