IT. Expert System.

Android Reference

GeomagneticField


android.hardware

Class GeomagneticField



  • public class GeomagneticField
    extends Object
    Estimates magnetic field at a given point on Earth, and in particular, to compute the magnetic declination from true north.

    This uses the World Magnetic Model produced by the United States National Geospatial-Intelligence Agency. More details about the model can be found at http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml. This class currently uses WMM-2010 which is valid until 2015, but should produce acceptable results for several years after that. Future versions of Android may use a newer version of the model.

    • Constructor Detail

      • GeomagneticField

        public GeomagneticField(float gdLatitudeDeg,
                        float gdLongitudeDeg,
                        float altitudeMeters,
                        long timeMillis)
        Estimate the magnetic field at a given point and time.
        Parameters:
        gdLatitudeDeg - Latitude in WGS84 geodetic coordinates -- positive is east.
        gdLongitudeDeg - Longitude in WGS84 geodetic coordinates -- positive is north.
        altitudeMeters - Altitude in WGS84 geodetic coordinates, in meters.
        timeMillis - Time at which to evaluate the declination, in milliseconds since January 1, 1970. (approximate is fine -- the declination changes very slowly).
    • Method Detail

      • getX

        public float getX()
        Returns:
        The X (northward) component of the magnetic field in nanoteslas.
      • getY

        public float getY()
        Returns:
        The Y (eastward) component of the magnetic field in nanoteslas.
      • getZ

        public float getZ()
        Returns:
        The Z (downward) component of the magnetic field in nanoteslas.
      • getDeclination

        public float getDeclination()
        Returns:
        The declination of the horizontal component of the magnetic field from true north, in degrees (i.e. positive means the magnetic field is rotated east that much from true north).
      • getInclination

        public float getInclination()
        Returns:
        The inclination of the magnetic field in degrees -- positive means the magnetic field is rotated downwards.
      • getHorizontalStrength

        public float getHorizontalStrength()
        Returns:
        Horizontal component of the field strength in nonoteslas.
      • getFieldStrength

        public float getFieldStrength()
        Returns:
        Total field strength in nanoteslas.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 95 / 158746632. Delta: 0.03739 с