es.ucm.look.locationProvider.map
Class Mapa

java.lang.Object
  extended by es.ucm.look.locationProvider.map.Mapa

public class Mapa
extends java.lang.Object

Maps INS coordinates to MAP coordinates.


Field Summary
static float NORTH
          Orientation factor.
static float SCALE
          Scale factor
 
Constructor Summary
Mapa()
           
 
Method Summary
static void initialize()
          Initialize all the variables
static float[] toMapCS(float[] csEarth)
          Convert to map coordination system Return the distance move in pixel in the frame system of the current building with specified offset angle
static int[] toMapScale(float[] meter)
          Convert the vector from meter to pixels
static int[] toMapScale(float x, float y)
          Convert the vector from meter to pixels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORTH

public static float NORTH
Orientation factor.


SCALE

public static float SCALE
Scale factor

Constructor Detail

Mapa

public Mapa()
Method Detail

initialize

public static void initialize()
Initialize all the variables


toMapCS

public static float[] toMapCS(float[] csEarth)
Convert to map coordination system Return the distance move in pixel in the frame system of the current building with specified offset angle

Parameters:
north - the distance toward north in meter
east - the distance toward east in meter
Returns:
the distance in x and y axis in pixel

toMapScale

public static int[] toMapScale(float[] meter)
Convert the vector from meter to pixels

Parameters:
meter - The vector in meter
Returns:
The vector in pixel

toMapScale

public static int[] toMapScale(float x,
                               float y)
Convert the vector from meter to pixels

Parameters:
x - the x coordination point right in meter
y - the y coordination point bottom in meter
Returns:
the vector in pixel