IEdge2 {tessellation} | R Documentation |
R6 class representing a semi-infinite edge in dimension 2
Description
A semi-infinite edge is given by a vertex, its origin, and a vector, its direction. Voronoï diagrams possibly have such edges.
Active bindings
O
get or set the vertex
O
direction
get or set the vector
direction
Methods
Public methods
Method new()
Create a new IEdge2
object.
Usage
IEdge2$new(O, direction)
Arguments
O
the vertex
O
(origin)direction
the vector
direction
Returns
A new IEdge2
object.
Examples
iedge <- IEdge2$new(c(1, 1), c(2, 3)) iedge iedge$O iedge$O <- c(1, 0) iedge
Method print()
Show instance of an IEdge2
object.
Usage
IEdge2$print(...)
Arguments
...
ignored
Examples
IEdge2$new(c(2, 0), c(3, -1))
Method clone()
The objects of this class are cloneable with this method.
Usage
IEdge2$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
## ------------------------------------------------
## Method `IEdge2$new`
## ------------------------------------------------
iedge <- IEdge2$new(c(1, 1), c(2, 3))
iedge
iedge$O
iedge$O <- c(1, 0)
iedge
## ------------------------------------------------
## Method `IEdge2$print`
## ------------------------------------------------
IEdge2$new(c(2, 0), c(3, -1))
[Package tessellation version 2.3.0 Index]