using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace XCommon.SqlSugar
|
{
|
public class SqlMath
|
{
|
public static double Abs(double value)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Sin(double value)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Cos(double value)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Asin(double value)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Acos(double value)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Tan(double value)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Atan(double value)
|
{
|
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Atan2(double x, double y)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Pow(double x, double y)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double Sqrt(double value)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static double GetDistance(double lat1, double lon1, double lat2, double lon2)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
//public static int GetDistance(double longitude, double latitude, double lon, double lat)
|
//{
|
// throw new NotSupportedException("Can only be used in expressions");
|
//}
|
|
public static int Bd09ToGcj02Lat(double longitude, double latitude)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static int Bd09ToGcj02Lon(double longitude, double latitude)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
|
public static int Gcj02ToBd09Lat(double longitude, double latitude)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
public static int Gcj02ToBd09Lon(double longitude, double latitude)
|
{
|
throw new NotSupportedException("Can only be used in expressions");
|
}
|
}
|
}
|