normal2d | R Documentation |
normal2d()
is an S3 generic that computes a 2D normal vector.
normal2d(x, ...)
## S3 method for class 'Coord2D'
normal2d(x, ..., normalize = TRUE)
## S3 method for class 'Line2D'
normal2d(x, ..., normalize = TRUE)
x |
Object to compute a 2D normal vector for such as a Line2D object. |
... |
Passed to or from other methods. |
normalize |
If |
A Coord2D (normal) vector
p <- as_coord2d(x = 2, y = 3)
normal2d(p)
normal2d(p, normalize = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.