Skip to content

Colossal.Atmosphere.EquatorialCoordinate

Assembly: Assembly-CSharp
Namespace: Colossal.Atmosphere

Type: struct

Base: System.ValueType

Summary: Simple value type used to store equatorial coordinates for celestial calculations (e.g., positions of the sun, moon or stars). It contains two public double fields representing the declination and right ascension components of an equatorial coordinate. The source does not specify units; callers in the codebase determine whether values are expressed in degrees, radians or hours for right ascension.


Fields

  • public double declination Declination component of the equatorial coordinate. Conceptually this is the angular distance north or south of the celestial equator. Units are not specified in the struct; consult calling code for the expected unit (degrees or radians).

  • public double rightAscension Right ascension component of the equatorial coordinate. Conceptually this is the angular distance measured along the celestial equator from the vernal equinox. Units are not specified in the struct (commonly expressed in hours, degrees, or radians depending on usage).

Properties

  • (none)
    This struct exposes only public fields; there are no properties defined.

Constructors

  • (implicit) default parameterless constructor
    No explicit constructors are defined in the source. The default parameterless constructor (zero-initialized fields) is available as with all C# structs.

Methods

  • (none)
    There are no methods defined on this struct.

Usage Example

// Create and initialize an equatorial coordinate
var coord = new Colossal.Atmosphere.EquatorialCoordinate();
coord.declination = 23.44;      // example value — interpret units according to caller (deg/rad)
coord.rightAscension = 6.0;     // example value — could be hours/degrees/radians

// Or initialize using an object initializer
var coord2 = new Colossal.Atmosphere.EquatorialCoordinate
{
    declination = -5.1,
    rightAscension = 14.3
};

// Use coord values in astronomical/atmospheric calculations elsewhere in the mod/game code.

{{ This struct is a lightweight, blittable container intended for passing simple equatorial coordinate data between atmosphere/celestial systems. When integrating with game code or performing trigonometric calculations, confirm the angular units expected by the consumer functions (degrees vs radians vs hours) to avoid incorrect results. }}