get_perpendicular_segment: get coordinate to draw perpendicular segment

Description Usage Arguments Details

Description

get coordinate to draw perpendicular segment

Usage

1
get_perpendicular_segment(x1, y1, x2, y2, x3, y3, longer = FALSE)

Arguments

x1

x coordinate of point 1

y1

y coordinate of point 1

x2

x coordinate of point 2

y2

y coordinate of point 2

x3

x coordinate of point 3

y3

y coordinate of point 3

longer

TRUE or FALSE

Details

following formulas thanks to jdbertron cf http://stackoverflow.com/questions/10301001/perpendicular-on-a-line-segment-from-a-given-point


priviere/PPBstats documentation built on May 6, 2021, 1:20 a.m.