Learn R Programming

affiner (version 0.1.3)

as_point1d: Cast to Point1D object

Description

as_point1d() casts to a Point1D object.

Usage

as_point1d(...)

# S3 method for numeric as_point1d(a, b, ...)

# S3 method for character as_point1d(x, ...)

# S3 method for Coord1D as_point1d(normal, ...)

# S3 method for Point1D as_point1d(point, ...)

Arguments

...

Passed to other function such as as_coord2d().

a, b

Numeric vectors that parameterize the point via the equation a * x + b = 0. Note this means that x = -b / a.

x

A (character) vector to be cast to a Point1D object

normal

Coord1D class object.

point

A Point1D object

Examples

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

Run the code above in your browser using DataLab