Preparing search index...
The search index is not available
rvgeo
rvgeo
ccw
Function ccw
ccw
(
p1
,
p2
,
p3
)
:
number
Counter-clockwise (not robust version) ccw 算法的非鲁棒版本
Returns 1 if three points make a counter-clockwise turn
逆时针返回 1
Returns -1 if three points make a clockwise turn
顺时针返回 -1
Returns 0 if three points are collinear
共线返回 0
Parameters
p1
:
Point
|
[
X1
:
number
,
Y1
:
number
]
可以是点类型,也可以是平面坐标数组(墨卡托)
p2
:
Point
|
[
X2
:
number
,
Y2
:
number
]
可以是点类型,也可以是平面坐标数组(墨卡托)
p3
:
Point
|
[
X3
:
number
,
Y3
:
number
]
可以是点类型,也可以是平面坐标数组(墨卡托)
Returns
number
1 | 0 | -1
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
rvgeo
colorListType
stretchType
Circle
Delaunator
Dijkstra
Evented
Geometry
GeometryCollection
Grid
LineString
MultiLineString
MultiPoint
MultiPolygon
Point
Polygon
QuadTree
Voronoi
CRS
GeoJSONFeature
GeoJSONFeatureCollection
GeoJSONGeometry
Loading...
Generated using
TypeDoc
Counter-clockwise (not robust version) ccw 算法的非鲁棒版本