SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
1.1 KiB

namespace ARLocation
{
public struct LocationReading
{
public double latitude;
public double longitude;
public double altitude;
public double accuracy;
public int floor;
/// <summary>
/// Epoch time in ms
/// </summary>
public long timestamp;
public Location ToLocation()
{
return new Location(latitude, longitude, altitude);
}
public static double HorizontalDistance(LocationReading a, LocationReading b)
{
return Location.HorizontalDistance(a.ToLocation(), b.ToLocation());
}
public override string ToString()
{
return
"LocationReading { \n" +
" latitude = " + latitude + "\n" +
" longitude = " + longitude + "\n" +
" altitude = " + altitude + "\n" +
" accuracy = " + accuracy + "\n" +
" floor = " + floor + "\n" +
" timestamp = " + timestamp + "\n" +
"}";
}
}
}