⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 onegpspos.java

📁 j2me写的google地图
💻 JAVA
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2008-6-16 11:21:11
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   oneGPSPos.java

package com.eightmotions.map;

import henson.midp.Float;

// Referenced classes of package com.eightmotions.map:
//            MapCanvas

public class oneGPSPos
{

    public oneGPSPos(Float px, Float py, Float alt, Float dir, Float speed, long stamp)
    {
        isValid = true;
        m_lon = px;
        m_lat = py;
        this.px = MapCanvas.xFromLon(m_lon);
        this.py = MapCanvas.yFromLat(m_lat);
        this.speed = speed;
        this.stamp = stamp;
        m_alt = alt;
        m_dir = dir;
        if(dir != null)
        {
            angle = (int)dir.toLong();
            Float dirr = Float.toRadians(dir);
            dx = (int)Float.sin(dirr).Mul(20L).toLong();
            dy = -(int)Float.cos(dirr).Mul(20L).toLong();
            Float d2 = Float.toRadians(dir.Add(new Float(135L)));
            dx1 = (int)Float.sin(d2).Mul(20L).toLong();
            dy1 = -(int)Float.cos(d2).Mul(20L).toLong();
        }
    }

    int px;
    int py;
    public Float speed;
    public Float m_lon;
    public Float m_lat;
    public Float m_dir;
    public Float m_alt;
    public int angle;
    public long stamp;
    int dx;
    int dy;
    int dx1;
    int dy1;
    public boolean isValid;
    public static final int DEFAULT_SIZE = 20;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -