LinesAngles {LearnGeom}R Documentation

Computes the angle that form two lines

Description

LinesAngles computes the angle that form two lines

Usage

LinesAngles(Line1, Line2)

Arguments

Line1

Line object previously created with CreateLinePoints or CreateLineAngle

Line2

Line object previously created with CreateLinePoints or CreateLineAngle

Value

Returns the angle that form the two lines

Examples

P1 <- c(0,0)
P2 <- c(1,1)
Line1 <- CreateLinePoints(P1, P2)
P3 <- c(1,-1)
P4 <- c(2,3)
Line2 <- CreateLinePoints(P3, P4)
angle <- LinesAngles(Line1, Line2)

[Package LearnGeom version 1.5 Index]