new GeoPoint(複製的GeoPoint或x。, y, z)
幾何物件:點
| Name | Type | Description | 
|---|---|---|
| 複製的GeoPoint或x。 | GeoPoint | Number | undefined | |
| y | Number | undefined | 若Obj參數為x時此參數為y,否則此參數無意義。 | 
| z | Number | undefined | 若有z座標,此代表z座標,否則此參數無意義。 | 
Example
var a = new GeoPoint({x:0,y:0});
var b = new GeoPoint(0,0);
var c = new GeoPoint();
var d = new GeoPoint({x:0,y:0,z:0});
var e = new GeoPoint(0,0,0);
var f = new GeoPoint(new GeoPoint(1,2,3));
Members
- 
    Boundary
- 
    
    此幾何的範圍,因為是點,所以範圍的Width與Height都是0 Properties:Name Type Description BoundaryGeoBoundary 範圍 
- 
    Length
- 
    
    此點離原點的長度 Properties:Name Type Description LengthNumber 長度 
- 
    PolarAngle
- 
    
    波拉角,即把此座標當向量,此向量的數學角度,單位為角度 Properties:Name Type Description PolarAngleNumber 波拉角 
- 
    readonlytype
- 
    
    物件型態,值為GEO_TYPE.POINT Properties:Name Type Description typeGEO_TYPE 物件型態 
- 
    xdouble
- 
    
    x座標 
- 
    ydouble
- 
    
    y座標 
- 
    zdouble
- 
    
    z座標 
Methods
- 
    Classify(Line){GEO_STATUS}common/Geometry.js, line 4078
- 
    
    
    計算自己相關於Line的位置。 Name Type Description LineGeoLine 要相對的Line。 Returns:Type Description GEO_STATUS 傳回自己相關於Line的位置。 
- 
    Clone(){GeoPoint}common/Geometry.js, line 3946
- 
    
    
    產生一份新的自己。 Returns:Type Description GeoPoint 傳回複製的新的自己。 
- 
    CopyFrom(Obj, y){GeoPoint}common/Geometry.js, line 3956
- 
    
    
    複製。 Name Type Description ObjGeoPoint | number 複製的GeoPoint或x。 yNumber 若Obj參數為x時此參數為y,否則此參數無意義。 Returns:Type Description GeoPoint this。 
- 
    Distance(Obj){Number}common/Geometry.js, line 4109
- 
    
    
    計算自己與傳入幾何的距離。 Name Type Description ObjGeoPoint | GeoPolyline | GeoPolygon | GeoPolygonSet 要計算距離的幾何資料。 Returns:Type Description Number 傳回距離。 
- 
    Div(div){GeoPoint}common/Geometry.js, line 4058
- 
    
    
    將座標除以div,並傳回結果。 Name Type Description divNumber 要除的值。 Returns:Type Description GeoPoint 傳回計算的結果。 
- 
    DivSelf(div){GeoPoint}common/Geometry.js, line 4067
- 
    
    
    將自己的座標除以div。 Name Type Description divNumber 要除的值。 Returns:Type Description GeoPoint this。 
- 
    FromGeoJSON(src){Boolean}common/Geometry.js, line 4219
- 
    
    
    讀入GeoJSON數值。 Name Type Description srcObject | String GeoJSON物件或字串。 Returns:Type Description Boolean 回傳讀取是否成功。 
- 
    IsEqual(p){Boolean}common/Geometry.js, line 3980
- 
    
    
    是否相等。 Name Type Description pGeoPoint 比較的point。 Returns:Type Description Boolean 傳回比較的結果。 
- 
    IsNotEqual(p){Boolean}common/Geometry.js, line 3989
- 
    
    
    是否不相等。 Name Type Description pGeoPoint 比較的point。 Returns:Type Description Boolean 傳回比較的結果。 
- 
    MakeBuffer(Delta, PolygonSet){Boolean}common/Geometry.js, line 4142
- 
    
    
    做出環域的PolygonSet。 Name Type Description DeltaNumber 環域的距離。 PolygonSetGeoPolygonSet out參數,環域計算的答案。 Returns:Type Description Boolean 回傳是否成功。 
- 
    Mul(Scale){GeoPoint}common/Geometry.js, line 4038
- 
    
    
    將座標乘上Scale,並傳回結果。 Name Type Description ScaleNumber 要乘的值。 Returns:Type Description GeoPoint 傳回計算的結果。 
- 
    MulSelf(Scale){GeoPoint}common/Geometry.js, line 4047
- 
    
    
    將自己的座標乘上Scale。 Name Type Description ScaleNumber 要乘的值。 Returns:Type Description GeoPoint this。 
- 
    Normalize(){GeoPoint}common/Geometry.js, line 4150
- 
    
    
    把point當向量,座向量的正規化,就是把向量的長度變成1。 Returns:Type Description GeoPoint this。 
- 
    Offset(p)common/Geometry.js, line 4131
- 
    
    
    位移,與PlusSelf一樣。 Name Type Description pGeoPoint 要位移的距離。 
- 
    Plus(p){GeoPoint}common/Geometry.js, line 3998
- 
    
    
    將座標加上point,並傳回結果。 Name Type Description pGeoPoint 要計算的point。 Returns:Type Description GeoPoint 傳回計算的結果。 
- 
    PlusSelf(p){GeoPoint}common/Geometry.js, line 4007
- 
    
    
    將座標加到自己的座標上。 Name Type Description pGeoPoint 要計算的point。 Returns:Type Description GeoPoint this。 
- 
    Rotate(Angle, wrtPoint){GeoPoint}common/Geometry.js, line 4166
- 
    
    
    旋轉。 Name Type Description AngleNumber 旋轉的角度。 wrtPointGeoPoint | undefined 旋轉的中心點,若wrtPoint=undefined,代表繞著原點旋轉。 Returns:Type Description GeoPoint this。 
- 
    Sub(p){GeoPoint}common/Geometry.js, line 4018
- 
    
    
    將座標減去point,並傳回結果。 Name Type Description pGeoPoint 要計算的point。 Returns:Type Description GeoPoint 傳回計算的結果。 
- 
    SubSelf(p){GeoPoint}common/Geometry.js, line 4027
- 
    
    
    將自己座標減去point。 Name Type Description pGeoPoint 要計算的point。 Returns:Type Description GeoPoint this。 
- 
    ToGeoJSON(toString, includeZ){Object|String}common/Geometry.js, line 4199
- 
    
    
    將幾何輸出成GeoJSON物件或字串。 Name Type Description toStringBoolean 是否把物件轉成JSON字串。 includeZBoolean 是否包含Z,標準GeoJSON不包含Z(可不給,預設false)。 Returns:Type Description Object | String 輸出轉換結果。 
- 
    toString(){string}common/Geometry.js, line 4189
- 
    
    
    將座標值轉成字串,格式為(x,y)。 Returns:Type Description string 用字串代表此座標。