Module

Distances

Methods

# static getAstronomicalUnitsFromParsecs(pc) → {AstronomicalUnit}

Transform parsecs into Astronomical Units
Parameters:
Name Type Description
pc Parsec

View Source distances.ts, line 27

# static getDistanceModulusFromParsecs(pc, visualAbsorption) → {Magnitude}

Get the distance modulus from a distance in parsecs.
Parameters:
Name Type Description
pc Parsec
visualAbsorption Magnitude The visual absorption (default = 0)

View Source distances.ts, line 76

Magnitude

# static getKilometersFromParsecs(pc) → {Kilometer}

Transform parsecs into kilometers
Parameters:
Name Type Description
pc Parsec

View Source distances.ts, line 43

Kilometer

# static getLightYearsFromParsecs(pc) → {LightYear}

Transform parsecs into light-years
Parameters:
Name Type Description
pc Parsec

View Source distances.ts, line 59

LightYear

# static getMegaparsecsFromRedshift(z, hubbleConstant) → {MegaParsec}

Transform a redshift into a distance in Megaparsecs
Parameters:
Name Type Description
z
hubbleConstant KilometerPerSecondPerMegaParsec The Hubble constant (default = 72)

View Source distances.ts, line 103

MegaParsec

# static getParallaxFromParsecs(parsec) → {ArcSecond}

Transform a distance in parsec into a parallax
Parameters:
Name Type Description
parsec Parsec The input distance in parsecs

View Source distances.ts, line 11

The parallax
ArcSecond

# static getParsecsFromAstronomicalUnits(AU) → {Parsec}

Transform Astronomical Units to parsecs
Parameters:
Name Type Description
AU AstronomicalUnit

View Source distances.ts, line 35

Parsec

# static getParsecsFromDistanceModulus(mM, visualAbsorption) → {Parsec}

Get the distance in parsecs from a distance modulus
Parameters:
Name Type Description
mM Magnitude The distance modulus
visualAbsorption Magnitude The visual absorption (default = 0)

View Source distances.ts, line 85

Parsec

# static getParsecsFromKilometers(km) → {Parsec}

Transform kilometers into parsecs
Parameters:
Name Type Description
km Kilometer

View Source distances.ts, line 51

Parsec

# static getParsecsFromLightYears(ly) → {Parsec}

Transform light-years into parsecs
Parameters:
Name Type Description
ly LightYear

View Source distances.ts, line 67

Parsec

# static getParsecsFromParallax(arcseconds) → {Parsec}

Transform a parallax into a distance in parsec.
Parameters:
Name Type Description
arcseconds ArcSecond The parallax

View Source distances.ts, line 19

The distance in parsec.
Parsec

# static getRedshiftFromMegaparsecs(Mpc, hubbleConstant) → {number}

Transform a distance in Megaparsecs into a redshift
Parameters:
Name Type Description
Mpc MegaParsec
hubbleConstant KilometerPerSecondPerMegaParsec The Hubble constant (default = 72)

View Source distances.ts, line 94

number