private CometAppearance Appearance(SkyContext ctx, Comet c) { double r = ctx.Get(DistanceFromSun, c); double delta = ctx.Get(DistanceFromEarth, c); return(MinorBodyEphem.CometAppearance(c.H, c.G, r, delta)); }
protected double PhaseAngle(SkyContext c, T body) { double delta = c.Get(DistanceFromEarth, body); double r = c.Get(DistanceFromSun, body); double R = c.Get(EarthDistanceFromSun); return(MinorBodyEphem.PhaseAngle(r, delta, R)); }
public float Magnitude(SkyContext c, Asteroid a) { double delta = c.Get(DistanceFromEarth, a); double r = c.Get(DistanceFromSun, a); double beta = c.Get(PhaseAngle, a); return(MinorBodyEphem.Magnitude(a.G, a.H, beta, r, delta)); }
private double Semidiameter(SkyContext c, Asteroid a) { double delta = c.Get(DistanceFromEarth, a); return(MinorBodyEphem.Semidiameter(delta, a.PhysicalDiameter)); }