Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / entities / Location.java
k-morimoto on 8 Oct 2019 230 bytes 地域情報関連の最低限の記述
package com.example.cosmosclient.entities;

public class Location {
    public double latitude;
    public double longitude;

    public int hashCode(){
        return (int)((latitude+90)/0.1)+(int)((longitude*0.1)*1800);
    }
}