geo_interSec_sph_line: Intersection point(s) of line and sphere.

View source: R/geometry.R

geo_interSec_sph_lineR Documentation

Intersection point(s) of line and sphere.

Description

Intersection point(s) of line and sphere.

Usage

geo_interSec_sph_line(p, u, m, r)

Arguments

p

position vector for the line c(x = ,y = ,z = )

u

direction vector for the line c(x = ,y = ,z = )

m

position vector of the centre of the sphere c(x = ,y = ,z = )

r

radius of the sphere

Details

Computes the intersecting point(s) of a line and the surface of a spear. Check geo_intersec_circl_line() for 2D version.

Value

list of intersecting point(s)

Author(s)

Florian Wagner florian.wagner@wagnius.ch

Examples

p <- c(x = 1, y = -2, z = 3)
u <- c(x = 1, y = 0, z = 1)
m <- c(1,-2,4)
r <- 1
geo_interSec_sph_line(p, u, m, r)

wagnius-GmbH/slvwagner documentation built on Jan. 19, 2025, 7:10 a.m.