/// <summary> /// Latitude to Layout(0-256) positioner /// </summary> /// <param name="lon"></param> /// <param name="lat"></param> /// <returns></returns> public static LayoutY PositionerLat(CodeX <Longitude> lon, CodeY <Latitude> lat) { return(new LayoutY { Ly = -R / 2 * Math.Log((1 + Math.Sin(lat.Cy.Lat.Rad)) / (1 - Math.Sin(lat.Cy.Lat.Rad))) + 128 }); }
public static LayoutY PositionerSy(CodeX <ScreenX> cx, CodeY <ScreenY> cy) { return(new LayoutY { Ly = cy.Cy, }); }
/// <summary> /// Longitude to Layout(0-256) positioner /// </summary> /// <param name="lon"></param> /// <param name="lat"></param> /// <returns></returns> public static LayoutX PositionerLon(CodeX <Longitude> lon, CodeY <Latitude> lat) { return(new LayoutX { Lx = R * (lon.Cx.Lon.Rad + Angle.PI) }); }
public static LayoutX PositionerSx(CodeX <ScreenX> cx, CodeY <ScreenY> cy) { return(new LayoutX { Lx = cx.Cx, }); }