GreatCircleIntersection: Point(s) at which two Great Circles intersect on a sphere

Description Usage Arguments Details Value Author(s) Examples

View source: R/GreatCircleIntersection.R

Description

Given two Great Circles returns point(s) at which they intersect on a sphere.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
GreatCircleIntersection(
  longitude_1,
  latitude_1,
  longitude_2,
  latitude_2,
  longitude_3,
  latitude_3,
  longitude_4,
  latitude_4,
  EarthRad = 6367.4447
)

Arguments

longitude_1

Decimalised longitude of first point on first Great Circle.

latitude_1

Decimalised latitude of first point on first Great Circle.

longitude_2

Decimalised longitude of second point on first Great Circle.

latitude_2

Decimalised latitude of second point on first Great Circle.

longitude_3

Decimalised longitude of first point on second Great Circle.

latitude_3

Decimalised latitude of first point on second Great Circle.

longitude_4

Decimalised longitude of second point on second Great Circle.

latitude_4

Decimalised latitude of second point on second Great Circle.

EarthRad

Earth radius in kilometres.

Details

Nothing yet.

Value

Matrix of longitude-latitude points at which intersection(s) occur.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
longitude_1 <- stats::runif(1, -180, 180)
longitude_2 <- stats::runif(1, -180, 180)
longitude_3 <- stats::runif(1, -180, 180)
longitude_4 <- stats::runif(1, -180, 180)
latitude_1 <- stats::runif(1, -90, 90)
latitude_2 <- stats::runif(1, -90, 90)
latitude_3 <- stats::runif(1, -90, 90)
latitude_4 <- stats::runif(1, -90, 90)
GreatCircleIntersection(longitude_1, latitude_1, longitude_2, latitude_2,
  longitude_3, latitude_3, longitude_4, latitude_4)

laurasoul/dispeRse documentation built on May 25, 2021, 4:50 a.m.