IEdge3 {tessellation}R Documentation

R6 class representing a semi-infinite edge in dimension 3

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 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$O
iedge$O <- c(1, 0, 0)
iedge

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

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

[Package tessellation version 2.3.0 Index]