Description Usage Arguments Value Examples
View source: R/CreateLineAngle.R
CreateLineAngle
creates a vector to represent a line that passes through a point and forms certain angle with X axis
1 | CreateLineAngle(P, angle)
|
P |
Vector containing the xy-coordinates of a point |
angle |
Angle in degrees (0-360) for the line |
Returns a vector which contains the slope and intercept of the defined line. If the angle is defined as 90, the slope is set to Inf
and the intercept is replaced by the x-value for the line (which is a vertical line in this situation)
1 2 3 | P <- c(0,0)
angle <- 45
Line <- CreateLineAngle(P, angle)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.