OpenLayers.Geometry.LineStringクラス
下記のクラスから継承
LineStringは、一回2ポイントが追加され、長さ2ポイント未満で決してありえない曲線です。
コンストラクター
OpenLayers.Geometry.LineString
LineStringジオメトリを作成します。
パラメータ
- points {Array(OpenLayers.Geometry.Point)} LineString作成用のポイント配列です。
メソッド
removeComponent
removeComponent: function( point )
3ポイント以上がlinestringだけは点の削除を許します。
パラメータ
- **point {OpenLayers.Geometry.Point} 削除するポイントです。
intersects
幾何学交差するかどうか判断します。This is a cheapo implementation of the Bently-Ottmann algorigithm. It doesn’t really keep track of a sweep line data structure. It is closer to the brute force method, except that segments are sorted and potential intersections are only calculated when bounding boxes intersect.
パラメータ
- geometry {OpenLayers.Geometry} 任意種類のジオメトリ。
戻り値
{Boolean} 入力ジオメトリと交差するかどうか。
Add a New Comment
page revision: 2, last edited: 09 May 2008 14:36





