NumUtil class

Constructors

NumUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getDistance(num lon1, num lat1, num lon2, num lat2) num
基于googleMap中的算法得到两经纬度之间的距离,计算精度与谷歌地图的距离精度差不多,相差范围在0.2米以下(单位m) lon1 第一点的精度 lat1 第一点的纬度 lon2 第二点的精度 lat3 第二点的纬度 返回的距离,单位m
rad(num d) double
转化为弧度(rad)