Description Usage Arguments Value Examples

View source: R/DistanceLines.R

`DistanceLines`

computes the distance between two lines

1 | ```
DistanceLines(Line1, Line2)
``` |

`Line1` |
Line object previously created with |

`Line2` |
Line object previously created with |

Returns the distance between two points

1 2 3 4 5 6 7 | ```
P1 <- c(0,0)
P2 <- c(1,1)
Line1 <- CreateLinePoints(P1, P2)
P3 <- c(1,-1)
P4 <- c(2,0)
Line2 <- CreateLinePoints(P3, P4)
d <- DistanceLines(Line1, Line2)
``` |

```
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.