Description Usage Arguments Value Examples
View source: R/CreateSegmentAngle.R
DrawSegment
plots the segment that connects two points in a previously generated coordinate plane
1 | CreateSegmentAngle(P, angle, l)
|
P |
Vector containing the xy-coordinates of the point |
angle |
Angle in degrees (0-360) for the segment |
l |
Positive number that indicates the length for the segment |
Returns a matrix which contains the points that determine the extremes of the segment
1 2 3 4 5 6 7 8 9 10 | x_min <- -5
x_max <- 5
y_min <- -5
y_max <- 5
CoordinatePlane(x_min, x_max, y_min, y_max)
P <- c(0,0)
angle <- 30
l <- 1
Segment <- CreateSegmentAngle(P, angle, l)
Draw(Segment, "black")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.