MidPoint: Computes the middle point of the segment that connects two...

Description Usage Arguments Value Examples

View source: R/MidPoint.R

Description

MidPoint computes the middle point of the segment that connects two points

Usage

1
MidPoint(P1, P2)

Arguments

P1

Vector containing the xy-coordinates of point 1

P2

Vector containing the xy-coordinates of point 2

Value

Returns a vector containing the xy-coordinates of the middle point of the segment that connects P1 and P2

Examples

1
2
3
P1 <- c(0,0)
P2 <- c(1,1)
mid <- MidPoint(P1, P2)

LearnGeom documentation built on July 14, 2020, 5:06 p.m.