straighten: Straight Line Measures

Description Usage Arguments Details Value Author(s) Source References See Also Examples

View source: R/straighten.R

Description

The function calculates slope, x intercept, y intercept and angle with x axis of a straight line

Usage

1
straighten(a, b, c)

Arguments

a

Parameter a

b

Parameter b

c

Parameter c

Details

If a straight line is given by ax+by+c=0 then slope, x intercept, y intercept and the angle made by the line with x axis are given by -a/b, -c/a, -c/b and arctan(slope)

Value

A list of class "stline", with all the input parameters and measures described in details.

Author(s)

Jon Smith

Source

https://github.com/riazakhan94/straightline

References

https://github.com/riazakhan94/straightline

See Also

hello

Examples

1
2
3
line <- straighten(-4,4,30)
class(line)
message("The slope of the line is ", line$slope)

villegar/friendlyGarbanzo documentation built on Feb. 11, 2020, 12:07 a.m.