Class: GeoPoint

mapray~ GeoPoint

経度、緯度、高度により位置を表現する。


new GeoPoint( [longitude] [, latitude] [, altitude])

球面座標

経度、緯度、高度を与えてインスタンスを生成する。

Parameters:
Name Type Argument Default Description
longitude number <optional>
0

経度 (Degrees)

latitude number <optional>
0

緯度 (Degrees)

altitude number <optional>
0

高度 (Meters)

Source:

Members


altitude :number

高度 (Meters)

Type:
  • number
Source:

latitude :number

緯度 (Degrees)

Type:
  • number
Source:

longitude :number

経度 (Degrees)

Type:
  • number
Source:

Methods


<static> toGocsArray(points, num_points, dst)

球面座標を地心直交座標に変換

Parameters:
Name Type Description
points Array.<number>

[lon_0, lat_0, alt_0, ...]

num_points number

点の数

dst Array.<number>

[x0, y0, z0, ...] (結果を格納する配列)

Source:
See:
  • mapray.GeoPoint.getAsGocs
Returns:

dst

Type
Array.<number>

assign(src)

インスタンスを代入

src を this に代入する。

Parameters:
Name Type Description
src mapray.GeoPoint

代入元

Source:
Returns:

this

Type
mapray.GeoPoint

clone()

インスタンスを複製

this の複製を生成して返す。

Source:
Returns:

this の複製

Type
mapray.GeoPoint

getAsGocs(dst)

地心直交座標として取得

Parameters:
Name Type Description
dst mapray.Vector3

結果を格納するオブジェクト

Source:
Returns:

dst

Type
mapray.Vector3

getGeographicalDistance(to)

地表面(高度0)での2地点間の距離を算出

GeoMath.DEGREE を半径とする真球として計算する。

Parameters:
Name Type Description
to mapray.GeoPoint
Source:
Returns:

arc 距離(m)

Type
number

getMlocsToGocsMatrix(dst)

座標変換行列を計算 (MLOCS → GOCS)

原点が this の Mapray ローカル直交座標系 (MLOCS) から地心直交座標系 (GOCS) に変換する行列を計算する。

Parameters:
Name Type Description
dst mapray.Matrix

結果を代入する行列

Source:
Returns:

dst

Type
mapray.Matrix

getUpwardVector(dst)

鉛直上方向のベクトルを計算

Parameters:
Name Type Description
dst mapray.Vector3

結果を代入するオブジェクト

Source:
Returns:

dst

Type
mapray.Vector3

setFromArray(position)

配列からの設定

longitude, latitude, altitude の順序で格納されている配列 position によりプロパティを設定する。

position の長さは 2 または 3 で、長さが 2 なら altitude は 0 に設定される。

Parameters:
Name Type Description
position Array.<number>

[longitude, latitude, altitude] または [longitude, latitude]

Source:
Returns:

this

Type
mapray.GeoPoint

setFromGocs(position)

地心直交座標からの設定

地心直交座標 position を球面座標に変換して this に設定する。

Parameters:
Name Type Description
position mapray.Vector3

入力 GOCS 座標 (Meters)

Source:
Returns:

this

Type
mapray.GeoPoint