as_point1d {affiner}R Documentation

Cast to Point1D object

Description

as_point1d() casts to a Point1D object.

Usage

as_point1d(...)

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

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

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

## S3 method for class '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

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

[Package affiner version 0.1.3 Index]