Line2D is an R6::R6Class() object representing two-dimensional lines.
Public fields
aNumeric vector that parameterizes the line via the equation
a * x + b * y + c = 0.bNumeric vector that parameterizes the line via the equation
a * x + b * y + c = 0.cNumeric vector that parameterizes the line via the equation
a * x + b * y + c = 0.
Methods
Line2D$new()
Usage
Line2D$new(a, b, c)Line2D$print()
Arguments
nNumber of lines to print. If
NULLprint all of them....Passed to
format.default().
Examples
p1 <- as_coord2d(x = 5, y = 10)
p2 <- as_coord2d(x = 7, y = 12)
theta <- degrees(45)
as_line2d(theta, p1)
#> <Line2D[1]>
#> a b c
#> 0.7071068 -0.7071068 3.535534
as_line2d(p1, p2)
#> <Line2D[1]>
#> a b c
#> 5 10 -155
