User:Cffk/test
source code[edit]
function [dist, azi] = trackoffset ...
(lat1, lon1, lat2, lon2, latt, lont, ellipsoid)
%TRACKOFFSET Approximate distance between a point and a geodesic track
%
% [dist, azi] = TRACKOFFSET(lat1, lon1, lat2, lon2, latt, lont)
% [dist, azi] =
% TRACKOFFSET(lat1, lon1, lat2, lon2, latt, lont, ellipsoid)
%
% computes the approximate distance and azimuth from the test point at
% (latitude, longitude) = (latt, lont) to the geodesic from (lat1, lon1)
% to (lat2, lon2). The arguments can be scalar or arrays of equal size.
% All angles (lat, lon, azi) are in degrees, distance (dist) is in
% meters.
%
% The optional ellipsoid vector is of the form [a, e], where a is the
% equatorial radius in meters, e is the eccentricity. If ellipsoid is
% omitted, the WGS84 ellipsoid (more precisely, the value returned by
% defaultellipsoid) is used.
%
% The method performs a single iteration of the solution of intercept
% problem from "Algorithms for geodesics", Section 8, using the test
% position as the initial guess for the intercept point. Because the
% gnomonic projection is used, the points (lat1, lon1) and (lat2, lon2)
% should be within about 9900 km of (latt, lont).
%
% See also GNOMONIC_FWD, GNOMONIC_FWD, DEFAULTELLIPSOID.
if nargin < 7, ellipsoid = defaultellipsoid; end
% project start + end points to gnomonic with test point as origin
[x1, y1] = gnomonic_fwd(latt, lont, lat1, lon1, ellipsoid);
[x2, y2] = gnomonic_fwd(latt, lont, lat2, lon2, ellipsoid);
% the distance from origin to the projected line
distp = (x2 .* y1 - x1 .* y2) ./ hypot(x2 - x1, y2 - y1);
% compute scale correction; the factor 1/sqrt(3) gives the appropriate mean
% value for rk over the interval [0, dist] (because rk is a quadratic
% function of distance).
[~, ~, ~, rk] = gnomonic_inv(latt, lont, distp/sqrt(3), 0, ellipsoid);
dist = rk.^2 .* distp; % radial scale is 1/rk^2
% compute direction to projected line
azi = atan2d(-sign(dist) .* (y2 - y1), sign(dist) .* (x2 - x1));
dist = abs(dist);
end
greek test[edit]
α β γ δ ε ζ η θ ι κ λ μ ν ξ π ρ σ τ υ ϕ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Υ Φ Ψ Ω
α β γ δ ε ζ η θ ι κ λ μ ν ξ π ρ σ τ υ ϕ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Υ Φ Ψ Ω
α β γ δ ε ζ η θ ι κ λ μ ν ξ π ρ σ τ υ ϕ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Υ Φ Ψ Ω
α β γ δ ε ζ η θ ι κ λ μ ν ξ π ρ σ τ υ ϕ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Υ Φ Ψ Ω
α β γ δ ε ζ η θ ι κ λ μ ν ξ π ρ σ τ υ ϕ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Υ Φ Ψ Ω
New test[edit]
Riccati 1767 https://books.google.com/books?id=hENRAAAAcAAJ&pg=PA153
Lambert 1768 https://books.google.com/books?id=LG1UAAAAYAAJ&pg=PA327
Sauri 1774 https://books.google.com/books?id=L9Y2AAAAMAAJ&pg=PA222
Gudermann, 1829 https://books.google.com/books?id=OQxCAAAAcAAJ&pg=PA287 1833 https://books.google.com/books?id=ChVNAAAAMAAJ
Frullani 1830 https://books.google.com/books?id=mw2m0CBssNcC
Serret 1857 https://books.google.com/books?id=Fk07AQAAIAAJ&pg=PA217
Hoüel 1864 https://books.google.com/books?id=EDITAQAAMAAJ&pg=PA416 1878 https://books.google.com/books?id=x_1MAAAAMAAJ&pg=PA202
Covarrubias (1874) https://books.google.com/books?id=TDw7AQAAIAAJ&pg=PA41
Guenther 1881 https://books.google.com/books?id=DU1LAAAAMAAJ
Chrsytal 1889 https://books.google.com/books?id=lRkPAAAAIAAJ&pg=PA278
McMahon, 1906 https://books.google.com/books?id=y4MRAAAAYAAJ
Jahnke and Emde 1909 https://books.google.com/books?id=mFPTAAAAMAAJ&pg=PA7
Czuber 1918 https://books.google.com/books?id=gmJbAAAAcAAJ&pg=PA68