gis-tools-ts - v0.6.0
    Preparing search index...

    Function llToS2Point

    • Converts an LonLat to the equivalent unit-length vector. Unnormalized values (see Normalize()) are wrapped around the sphere as would be expected based on their definition as spherical angles. So for example the following pairs yield equivalent points (modulo numerical error): (90.5, 10) =~ (89.5, -170) (a, b) =~ (a + 360 * n, b) The maximum error in the result is 1.5 * DBL_EPSILON. (This does not include the error of converting degrees, E5, E6, or E7 to radians.)

      Can be used just like an S2Point constructor. For example: S2Cap cap; cap.AddPoint(S2Point(latlon));

      Type Parameters

      • M extends Properties = Properties

      Parameters

      Returns VectorPoint<M>

      • equivalent unit-length vector 3D point