Learn R Programming

affiner (version 0.1.3)

Point1D: 1D points R6 Class

Description

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

Arguments

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


Method 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.


Method print()

Usage

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

Arguments

n

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

...

Passed to format.default().


Method 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

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

Run the code above in your browser using DataLab