Learn R Programming

retistruct (version 0.6.3)

compute.intersections.sphere: Find the intersection of a plane with edges of triangles on a sphere

Description

Find the intersections of the plane defined by the normal n and the distance d expressed as a fractional distance along the side of each triangle.

Usage

compute.intersections.sphere(phi, lambda, T, n, d)

Arguments

phi

Latitude of grid points on sphere centred on origin.

lambda

Longitude of grid points on sphere centred on origin.

T

Triangulation

n

Normal of plane

d

Distance of plane along normal from origin.

Value

Matrix with same dimensions as T. Each row gives the intersection of the plane with the corresponding triangle in T. Column 1 gives the fractional distance from vertex 2 to vertex 3. Column 2 gives the fractional distance from vertex 3 to vertex 1. Column 2 gives the fractional distance from vertex 1 to vertex 2. A value of NaN indicates that the corresponding edge lies in the plane. A value of Inf indicates that the edge lies parallel to the plane but outside it.