Skip to content
Select language:English

MCL 1.3.5

abstract class LocalReferenceSystem(val sys: LocalCoordinateSystem = LocalCoordinateSystem.ENU)

Base class representing a local reference system tied to the Earth's surface.

It defines a bidirectional transformation between global geodetic coordinates (WGS84 latitude/longitude) and a local planar coordinate space.

Inheritors

Constructors

constructor(sys: LocalCoordinateSystem = LocalCoordinateSystem.ENU)

Properties

The local oordinate system.

Functions

fun toLocal2d(coord: Coord2D): Vec2d
abstract 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.

abstract fun toLocal2f(longitude: Double, latitude: Double): Vec2f

Converts the given point to a Vec2d object.

fun toLocal3d(coord: Coord3D, sys: LocalCoordinateSystem = this.sys): Vec3d
abstract 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
abstract 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.

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

Converts the given vector to a Coord3D object.

abstract fun toWGS84(east: Double, north: Double): Coord2D
fun toWGS84(east: Float, north: Float): Coord2D

Converts the given point to a Coord2D object.