geo_intersec_circl_line: Intersection point(s) of line and a circle

View source: R/geometry.R

geo_intersec_circl_lineR Documentation

Intersection point(s) of line and a circle

Description

Intersection point(s) of line and a circle

Usage

geo_intersec_circl_line(R, o, m, b)

Arguments

R

Radius of the circle

o

Position vector of the circle

m

solpe of linear function

b

intersect of linear function

Details

Computes the intersecting point of a line and a circle. The line is a linear function such as y=mx+b. The circle in the form (x-o_1)^2+(y-o_1)^2 = R^2. Check geo_interSec_sph_line() for 3D version.

Value

list of intersecting points

Author(s)

Florian Wagner florian.wagner@wagnius.ch

Examples

R <- 1; o <- c(1.2,0.9); R <- 1; m <- 1; b <- 0.8;
geo_intersec_circl_line(R,o,m,b)

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