Skip to contents

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


Method new()

Create a new IEdge3 object.

Usage

IEdge3$new(O, direction)

Arguments

O

the vertex O (origin)

direction

the vector direction

Returns

A new IEdge3 object.

Examples

iedge <- IEdge3$new(c(1, 1, 1), c(1, 2, 3))
iedge
iedge$O
iedge$O <- c(1, 0, 0)
iedge


Method print()

Show instance of an IEdge3 object.

Usage

IEdge3$print(...)

Arguments

...

ignored

Examples

IEdge3$new(c(2, 0, 0), c(3, -1, 4))


Method clone()

The objects of this class are cloneable with this method.

Usage

IEdge3$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples


## ------------------------------------------------
## Method `IEdge3$new`
## ------------------------------------------------

iedge <- IEdge3$new(c(1, 1, 1), c(1, 2, 3))
iedge
#> IEdge:
#>   origin O: 1, 1, 1
#>  direction: 1, 2, 3
iedge$O
#> [1] 1 1 1
iedge$O <- c(1, 0, 0)
iedge
#> IEdge:
#>   origin O: 1, 0, 0
#>  direction: 1, 2, 3

## ------------------------------------------------
## Method `IEdge3$print`
## ------------------------------------------------

IEdge3$new(c(2, 0, 0), c(3, -1, 4))
#> IEdge:
#>   origin O: 2, 0, 0
#>  direction: 3, -1, 4