<< Click to Display Table of Contents >>
new sg.geometry.Point(x, y)
Description
建立一個點幾何物件
Position
Geometry.js
Parameters
Parameter |
Type |
Description |
x |
Number |
x 坐標 |
y |
Number |
y 坐標 |
Properties
Properties |
Type |
Description |
extent |
sg.geometry.Extent |
幾何資料範圍 |
type |
String |
幾何資料的類型 |
x |
Number |
x 坐標 |
y |
Number |
y 坐標 |
Methods
Methods |
Type |
Description |
|||||||||
getExtent() |
Returns: sg.geometry.Extent |
取得幾何資料範圍 Returns:
|
|||||||||
toWkt() |
Returns: String |
轉成wkt字串 Returns:
|
|||||||||
setX(x) |
Number |
設定點的x座標
|
|||||||||
setY(y) |
Number |
設定點的y座標
|
|||||||||
update(x,y) |
Number |
更新點位x,y 座標
|
|||||||||
getFirstPoint_ |
Returns: sg.geometry.Point |
取得點位資料 Returns:
|
|||||||||
clone() |
Returns: sg.geometry.Point |
複製點幾何物件並回傳 Returns:
|
|||||||||
transform(a,b,c,d,e,f,g,h,i) |
Nmber |
透過轉換參數,對點物件進行座標轉換
|
|||||||||
forEachVertex(callback) |
function |
透過callback方法,回傳點物件的所有頂點資料 callback(context) { //頂點資料(sg.geometry.Point) Context.point; } |
Example
|
©2015 Supergeo Technologies Inc.