OpenLayers.Geometry.Pointクラス

下記のクラスから継承


ポイントジオメトリクラスです。

プロパティ


x

{float}

y

{float}

コンストラクター


OpenLayers.Geometry.Point

ポイントジオメトリを作成します。
パラメータ

  • x {float}
  • y {float}

メソッド


clone

clone: function( obj )


戻り値
{OpenLayers.Geometry.Point} OpenLayers.Geometry.Pointのクローン。
distanceTo

distanceTo: function( point)


パラメータ
equals

equals:function( geom )


パラメータ

戻り値
{Boolean} Boolean value indicating whether the passed-in {OpenLayers.Geometry} object has the same components as this note that if ll passed in is null, returns false

渡された{OpenLayers.Geometry}オブジェクトと同じ構成要素を持っているかどうか。nullを渡した場合はfalseを返します。

move

» move: function( x, y )


ジオメトリを指定された場所に移動します。
パラメータ
  • x {Float} X -変位(地図単位)
  • y {Float} Y -変位(地図単位)
rotate

rotate: function( angle, origin )


指定の原点を中心にして、ジオメトリの周りを回転させます。
パラメータ
  • angle {Float} 回転角度 (測定値の正のx軸から反時計回り)
  • origin {OpenLayers.Geometry.Point} 回転の中心座標。
resize

resize: function( scale, origin, ratio )


原点ジオメトリに相対的のサイズを変更する。このメソッドを使用し、ジオメトリに同じ縮尺を適用する。
パラメータ
  • scale {Float} ジオメトリサイズ変更の因子です。次元の倍数になります。(例えば線の場合は長さを2倍、ポリゴンの場合は面積4倍になる)
  • origin {OpenLayers.Geometry.Point} サイズ変更の参照点。
  • ratio {Float} オプション、サイズ変更するx:yの比率、ディフォルトは1です。
intersects

intersects: function( geometry )


幾何学交差するかどうか判断します。
パラメータ

戻り値
{Boolean} 入力ジオメトリと交差するかどうか。

transform

transform: function( source, dest )


座標系を変換します。
パラメータ

戻り値
{OpenLayers.Geometry}

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License