as_line2d | R Documentation |
as_line2d()
casts to a Line2D object.
as_line2d(...)
## S3 method for class 'numeric'
as_line2d(a, b, c, ...)
## S3 method for class 'angle'
as_line2d(theta, p1 = as_coord2d("origin"), ...)
## S3 method for class 'character'
as_line2d(x, ...)
## S3 method for class 'Coord2D'
as_line2d(normal, p1 = as_coord3d("origin"), p2, ...)
## S3 method for class 'Line2D'
as_line2d(line, ...)
## S3 method for class 'Point1D'
as_line2d(point, b = 0, ...)
... |
Passed to other function such as |
a , b , c |
Numeric vectors that parameterize the line via the equation |
theta |
Angle of the line represented by an |
p1 |
Point on the line represented by a Coord2D class object. |
x |
A (character) vector to be cast to a Line2D object |
normal |
Normal vector to the line represented by a Coord2D class object. |
p2 |
Another point on the line represented by a Coord2D class object. |
line |
A Line2D object |
point |
A Point1D object |
p1 <- as_coord2d(x = 5, y = 10)
p2 <- as_coord2d(x = 7, y = 12)
theta <- degrees(45)
as_line2d(theta, p1)
as_line2d(p1, p2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.