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

MCL 1.3.5

open class LocalAffineFrame(val origin: Coord2D, val topLeft: Coord2D, val bottomRight: Coord2D, sys: LocalCoordinateSystem = LocalCoordinateSystem.ENU, width: Double = Double.NaN, height: Double = Double.NaN, heading: Double = Double.NaN) : LocalReferenceSystem

Represents a Local Affine Frame (LAF) defined by an origin and two vectors (origin to topLeft and origin to bottomRight).

This class is used to map geographical coordinates to a local 2D Cartesian system and vice versa.

Constructors

constructor(origin: Coord2D, topLeft: Coord2D, bottomRight: Coord2D, sys: LocalCoordinateSystem = LocalCoordinateSystem.ENU, width: Double = Double.NaN, height: Double = Double.NaN, heading: Double = Double.NaN)

Properties

The point defining the second axis (usually X or East).

The heading of the floor plan in degrees.

The height of the floor plan in meters.

The origin of the affine frame.

The local oordinate system.

The point defining the first axis (usually Y or North).

The width of the floor plan in meters.

Functions

fun contains(location: Coord2D): Boolean
fun contains(longitude: Double, latitude: Double): Boolean

Checks if a given location is within this affine frame's boundaries.

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

Converts the given point to a Vec2d object.

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

Converts the given point to a Vec2d object.

fun toLocal2f(coord: Coord2D): Vec2f

Converts the given point to a Vec2f object.

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

Converts the given point to a Vec3d object.

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

Converts the given point to a Vec3f 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.

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

Converts the given point to a Coord2D object.

Converts the given vector to a Coord2D object.