Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

MCL 1.3.5

class LocalTangentPlane(val originLongitude: Double, val originLatitude: Double, sys: LocalCoordinateSystem = LocalCoordinateSystem.ENU) : LocalReferenceSystem

Represents a Local Tangent Plane (LTP).

Constructors

constructor(originLongitude: Double, originLatitude: Double, sys: LocalCoordinateSystem = LocalCoordinateSystem.ENU)
constructor(origin: Coord2D, sys: LocalCoordinateSystem = LocalCoordinateSystem.ENU)

Creates a new instance of the LocalTangentPlane class.

Properties

The latitude of the origin of the tangent plane.

The longitude of the origin of the tangent plane.

The local oordinate system.

Functions

fun distance(coord: Coord2D): Double
fun distance(longitude: Double, latitude: Double): Double

Calculates the distance between the origin and another set of coordinates.

fun toLocal2d(coord: Coord2D): Vec2d
open override fun toLocal2d(longitude: Double, latitude: Double): Vec2d

Converts the given point to a Vec2d object.

fun toLocal2f(coord: Coord2D): Vec2f

Converts the given point to a Vec2f object.

open override fun toLocal2f(longitude: Double, latitude: Double): Vec2f

Converts the given point to a Vec2d object.

fun toLocal3d(coord: Coord3D, sys: LocalCoordinateSystem = this.sys): Vec3d
open override fun toLocal3d(longitude: Double, latitude: Double, elevation: Float, sys: LocalCoordinateSystem = this.sys): Vec3d

Converts the given point to a Vec3d object.

fun toLocal3f(coord: Coord3D, sys: LocalCoordinateSystem = this.sys): Vec3f
open override fun toLocal3f(longitude: Double, latitude: Double, elevation: Float, sys: LocalCoordinateSystem = this.sys): Vec3f

Converts the given point to a Vec3f object.

Converts the given vector to a Coord2D object.

fun toWGS84(east: Float, north: Float): Coord2D
open override fun toWGS84(east: Double, north: Double): Coord2D

Converts the given point to a Coord2D object.

open override fun toWGS84(v: Vec3d, sys: LocalCoordinateSystem = this.sys): Coord3D
open override fun toWGS84(v: Vec3f, sys: LocalCoordinateSystem = this.sys): Coord3D

Converts the given vector to a Coord3D object.