| 程序包 | 说明 |
|---|---|
| cn.allbs.model | |
| cn.allbs.utils |
| 限定符和类型 | 字段和说明 |
|---|---|
static Point2D |
Point2D.ZERO
Point or vector with both coordinates set to 0.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Point2D |
Point2D.add(double x,
double y)
Returns a point with the specified coordinates added to the coordinates
of this point.
|
Point2D |
Point2D.add(Point2D point)
Returns a point with the coordinates of the specified point added to the
coordinates of this point.
|
Point2D |
Point2D.midpoint(double x,
double y)
Returns a point which lies in the middle between this point and the
specified coordinates.
|
Point2D |
Point2D.midpoint(Point2D point)
Returns a point which lies in the middle between this point and the
specified point.
|
Point2D |
Point2D.multiply(double factor)
Returns a point with the coordinates of this point multiplied
by the specified factor
|
Point2D |
Point2D.normalize()
Normalizes the relative magnitude vector represented by this instance.
|
Point2D |
Point2D.subtract(double x,
double y)
Returns a point with the specified coordinates subtracted from
the coordinates of this point.
|
Point2D |
Point2D.subtract(Point2D point)
Returns a point with the coordinates of the specified point subtracted
from the coordinates of this point.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Point2D |
Point2D.add(Point2D point)
Returns a point with the coordinates of the specified point added to the
coordinates of this point.
|
double |
Point2D.angle(Point2D point)
Computes the angle (in degrees) between the vector represented
by this point and the vector represented by the specified point.
|
double |
Point2D.angle(Point2D p1,
Point2D p2)
Computes the angle (in degrees) between the three points with this point
as a vertex.
|
Point3D |
Point2D.crossProduct(Point2D vector)
Computes cross product of the vector represented by this instance
and the specified vector.
|
double |
Point2D.distance(Point2D point)
Computes the distance between this point and the specified
point. |
double |
Point2D.dotProduct(Point2D vector)
Computes dot (scalar) product of the vector represented by this instance
and the specified vector.
|
Point2D |
Point2D.midpoint(Point2D point)
Returns a point which lies in the middle between this point and the
specified point.
|
Point2D |
Point2D.subtract(Point2D point)
Returns a point with the coordinates of the specified point subtracted
from the coordinates of this point.
|
| 限定符和类型 | 方法和说明 |
|---|---|
private static Point2D |
BaiduMercatorToLngLatUtil.converter(java.lang.Double x,
java.lang.Double y,
java.lang.Double[] cE)
经纬度坐标转墨卡托坐标
|
private static Point2D |
BaiduMercatorToLngLatUtil.convertLL2MC(java.lang.Double lng,
java.lang.Double lat)
经纬度坐标转墨卡托坐标
|
Point2D |
WGS84MercatorToLngLatUtil.wgs84ToMercator(EarthPoint2D earthPoint2D)
WGS84转墨卡托坐标
|
| 限定符和类型 | 方法和说明 |
|---|---|
EarthPoint2D |
WGS84MercatorToLngLatUtil.mercatorToWgs84(Point2D point2D)
墨卡托转WGS84
|
Copyright © 2023. All rights reserved.