Cosimo Streppone > OpenGL-Earth-0.04 > OpenGL::Earth::Coords

Download:
OpenGL-Earth-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: OpenGL-Earth-0.05

NAME ^

OpenGL::Earth::Coords

SYNOPSIS ^

    # Where's Oslo on a 3D Sphere of radius 1.0?
    use OpenGL::Earth::Coords;
    my ($x, $y, $z) = OpenGL::Earth::Coords::earth_to_xyz(59.9167, 10.75, 1.0);
    printf "x=%.3f y=%.3f z=%.3f\n", $x, $y, $z;

DESCRIPTION ^

Just a quick and dirty module to convert lat/long coordinates into 3D x, y, z coordinates, assuming the Earth is a perfect sphere, which we know is not.

AUTHORS ^

Cosimo Streppone, cosimo@cpan.org

COPYRIGHT ^

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: