Galaxy
Constants
AU_KM = 149597870.7
EARTH_TEXTURE = Base64.decode({{ read_file("/tmp/tmp.NcEDfj/src/src/galaxy/../../assets/earth.b64") }})
NASA Blue Marble, reduced to RGB samples and embedded for offline use.
EPOCH = Time.utc(2000, 1, 1, 12)
GALACTIC_CENTER = Vector.new(-26000.0 * LY_AU, 0.0, 0.0)
AU, solar origin, galactic plane XZ; +Y is galactic north.
LY_AU = 63241.07708426628
START_DATE = Time.utc(2026, 10, 27, 12)
TAU = Math::PI * 2
Class methods
distance_label(au : Float64) : String
Sourcesmooth(value : Float64) : Float64
SourceNested types
- Galaxy::App
- Galaxy::Body
- Galaxy::Camera
- Galaxy::Canvas
- Galaxy::Cloud
- Galaxy::Color
- Galaxy::Flight
- Galaxy::Hotspot
- Galaxy::ImageBufferCache
- Galaxy::Kind
- Galaxy::NativeCanvas
- Galaxy::Navigator
- Galaxy::Orbit
- Galaxy::Pick
- Galaxy::Point
- Galaxy::Projection
- Galaxy::Renderer
- Galaxy::Star
- Galaxy::Surface
- Galaxy::SurfaceBasis
- Galaxy::SvgCanvas
- Galaxy::TextCache
- Galaxy::Universe
- Galaxy::Vector