Class Constants


  • public class Constants
    extends java.lang.Object
    • Field Detail

      • DISTANCE_SCALE_FACTOR

        public static double DISTANCE_SCALE_FACTOR
        Distance unit scaling (mainly for VR)
      • M_TO_U

        public static double M_TO_U
        Metre to local unit conversion. Multiply this by all values in m.
      • U_TO_M

        public static double U_TO_M
        Local unit to m conversion.
      • KM_TO_U

        public static double KM_TO_U
        Kilometre to local unit conversion. Multiply this by all values in Km.
      • U_TO_KM

        public static double U_TO_KM
        Local unit to km conversion.
      • AU_TO_U

        public static double AU_TO_U
        AU to local units conversion.
      • U_TO_AU

        public static double U_TO_AU
        Local unit to AU conversion.
      • PC_TO_U

        public static double PC_TO_U
        Parsec to local unit conversion. Multiply this by all values in pc.
      • KPC_TO_U

        public static double KPC_TO_U
        Kiloparsec to local unit conversion. Multiply this by all values in Kpc.
      • MPC_TO_U

        public static double MPC_TO_U
        Megaparsec to local unit conversion. Multiply this by all values in Mpc.
      • U_TO_PC

        public static double U_TO_PC
        Local unit to pc conversion.
      • U_TO_KPC

        public static double U_TO_KPC
        Local unit to Kpc conversion.
      • C_US

        public static double C_US
        Speed of light in internal units per second
      • Ro_TO_U

        public static double Ro_TO_U
        Solar radius to local units
      • U_TO_Ro

        public static double U_TO_Ro
        Units to solar radius
      • CAMERA_K

        public static double CAMERA_K
        Logarithmic depth buffer constant. Controls the resolution close to the camera
      • STAR_SIZE_FACTOR

        public static final double STAR_SIZE_FACTOR
        Factor we need to use to get the real size of the star given its quad *texture* size
        See Also:
        Constant Field Values
      • THRESHOLD_DOWN

        public static final double THRESHOLD_DOWN
        Threshold radius/distance where star size remains constant.
        See Also:
        Constant Field Values
      • MIN_SLIDER

        public static final float MIN_SLIDER
        Minimum generic slider value
        See Also:
        Constant Field Values
      • MIN_SLIDER_1

        public static final float MIN_SLIDER_1
        Minimum generic slider value (1)
        See Also:
        Constant Field Values
      • MAX_SLIDER

        public static final float MAX_SLIDER
        Maximum generic slider value
        See Also:
        Constant Field Values
      • MAX_MOTION_BLUR

        public static final int MAX_MOTION_BLUR
        Max motion blur value
        See Also:
        Constant Field Values
      • MAX_ROT_SPEED

        public static final float MAX_ROT_SPEED
        Maximum rotation speed
        See Also:
        Constant Field Values
      • MIN_ROT_SPEED

        public static final float MIN_ROT_SPEED
        Minimum rotation speed
        See Also:
        Constant Field Values
      • MAX_TURN_SPEED

        public static final float MAX_TURN_SPEED
        Maximum turning speed
        See Also:
        Constant Field Values
      • MIN_TURN_SPEED

        public static final float MIN_TURN_SPEED
        Minimum turning speed
        See Also:
        Constant Field Values
      • MIN_STAR_BRIGHT

        public static final float MIN_STAR_BRIGHT
        Minimum star brightness
        See Also:
        Constant Field Values
      • MAX_STAR_BRIGHT

        public static final float MAX_STAR_BRIGHT
        Maximum star brightness
        See Also:
        Constant Field Values
      • MIN_PM_NUM_FACTOR

        public static final float MIN_PM_NUM_FACTOR
        Minimum number factor for proper motion vectors
        See Also:
        Constant Field Values
      • MAX_PM_NUM_FACTOR

        public static final float MAX_PM_NUM_FACTOR
        Maximum number factor for proper motion vectors
        See Also:
        Constant Field Values
      • MIN_PM_LEN_FACTOR

        public static final float MIN_PM_LEN_FACTOR
        Minimum length factor for proper motion vectors
        See Also:
        Constant Field Values
      • MAX_PM_LEN_FACTOR

        public static final float MAX_PM_LEN_FACTOR
        Maximum length factor for proper motion vectors
        See Also:
        Constant Field Values
      • MIN_LOD_TRANS_ANGLE_DEG

        public static final float MIN_LOD_TRANS_ANGLE_DEG
        Minimum angle where the LOD transitions start
        See Also:
        Constant Field Values
      • MAX_LOD_TRANS_ANGLE_DEG

        public static final float MAX_LOD_TRANS_ANGLE_DEG
        Maximum angle where the LOD transitions end
        See Also:
        Constant Field Values
      • MIN_STAR_POINT_SIZE

        public static final float MIN_STAR_POINT_SIZE
        Minimum star pixel size
        See Also:
        Constant Field Values
      • MAX_STAR_POINT_SIZE

        public static final float MAX_STAR_POINT_SIZE
        Maximum star pixel size
        See Also:
        Constant Field Values
      • STEP_STAR_POINT_SIZE

        public static final float STEP_STAR_POINT_SIZE
        Step to increase/decrease
        See Also:
        Constant Field Values
      • MIN_SC_RESPONSIVENESS

        public static final float MIN_SC_RESPONSIVENESS
        Minimum spacecraft responsiveness
        See Also:
        Constant Field Values
      • MAX_SC_RESPONSIVENESS

        public static final float MAX_SC_RESPONSIVENESS
        Maximum spacecraft responsiveness
        See Also:
        Constant Field Values
      • MIN_STAR_MIN_OPACITY

        public static final float MIN_STAR_MIN_OPACITY
        Minimum star minimum opacity
        See Also:
        Constant Field Values
      • MAX_STAR_MIN_OPACITY

        public static final float MAX_STAR_MIN_OPACITY
        Maximum star minimum opacity
        See Also:
        Constant Field Values
      • CAMERA_SPEED_FACTOR

        public static final float CAMERA_SPEED_FACTOR
        Camera speed factor
        See Also:
        Constant Field Values
      • MOTION_BLUR_VALUE

        public static final float MOTION_BLUR_VALUE
        Motion blur value
        See Also:
        Constant Field Values
    • Constructor Detail

      • Constants

        public Constants()
    • Method Detail

      • getCameraK

        public static float getCameraK()
      • initialize

        public static void initialize​(double distanceScaleFactor)
      • withinVSOPTime

        public static boolean withinVSOPTime​(long time)
        Checks whether the given time is within the acceptable bounds of VSOP87 algorithms.
        Parameters:
        time - The time as the number of milliseconds since January 1, 1970, 00:00:00 GMT.
        Returns:
        Whether the given time is within the bounds of VSOP