powered by
Line2D is an R6::R6Class() object representing two-dimensional lines.
Line2D
R6::R6Class()
a
Numeric vector that parameterizes the line via the equation a * x + b * y + c = 0.
a * x + b * y + c = 0
b
c
Line2D$new()
Line2D$print()
Line2D$clone()
new()
Line2D$new(a, b, c)
print()
Line2D$print(n = NULL, ...)
n
Number of lines to print. If NULL print all of them.
NULL
...
Passed to format.default().
format.default()
clone()
The objects of this class are cloneable with this method.
Line2D$clone(deep = FALSE)
deep
Whether to make a deep clone.
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)
Run the code above in your browser using DataLab