Skip to contents

Point1D is an R6::R6Class() object representing one-dimensional points.

Public fields

a

Numeric vector that parameterizes the point via the equation a * x + b = 0.

b

Numeric vector that parameterizes the point via the equation a * x + b = 0.

Methods


Point1D$new()

Usage

Point1D$new(a, b)

Arguments

a

Numeric vector that parameterizes the line via the equation a * x + b = 0.

b

Numeric vector that parameterizes the line via the equation a * x + b = 0.


Point1D$print()

Usage

Point1D$print(n = NULL, ...)

Arguments

n

Number of lines to print. If NULL print all of them.

...

Passed to format.default().


Point1D$clone()

The objects of this class are cloneable with this method.

Usage

Point1D$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

p1 <- as_point1d(a = 1, b = 5)