DFUtil class

工具类

Constructors

DFUtil()

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

distanceTo(DFPosition point1, DFPosition point2) double
获取距离
distanceToSquared(DFPosition point1, DFPosition point2) double
距离的平方
fixDouble4(double value) double
将double转换为4位小数
getDirection(double radians) String
获取标准8方向
getNearestDistance(DFPosition o1, DFPosition o2, DFPosition o) double
Get o point distance o1 and o2 line segment distance
getRadians(String direction) double
获取弧度
to2dList(List<int> data, int columnSize, int fillValue) List<List<int>>
转换为二维数组