make_orthogonal_segment: Compute an orthogonal vector

View source: R/m.R

make_orthogonal_segmentR Documentation

Compute an orthogonal vector

Description

Computes the start and enpoint of a vector that crosses an input vector orthogonally at its start point, end point or at its midth section.

Usage

make_orthogonal_segment(sp, ep, out_length, inters_loc = "m")

Arguments

sp, ep

Numeric vectors of length two. Correspond to the start- and end point of the geometrical vector for which to compute the orthogonal vector.

out_length

The length/magnitude of the orthogonal vector.

inters_loc

The location of the intersection. Valid input options are 'sp', 'ep' or 'm'.

Value

List of two slots named sp and ep with vectors of length two that correspond to the start- and end point of the crossing vector.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.