Translation: R6 class representing a translation

Description Active bindings Methods

Description

A translation is given by a vector v.

Active bindings

v

get or set the vector of translation

Methods

Public methods


Method new()

Create a new Translation object.

Usage
Translation$new(v)
Arguments
v

a numeric vector of length two, the vector of translation

Returns

A new Translation object.


Method print()

Show instance of a translation object.

Usage
Translation$print(...)
Arguments
...

ignored


Method project()

Transform a point or several points by the reference translation.

Usage
Translation$project(M)
Arguments
M

a point or a two-column matrix of points, one point per row


Method transform()

An alias of translate.

Usage
Translation$transform(M)
Arguments
M

a point or a two-column matrix of points, one point per row


Method translateLine()

Translate a line.

Usage
Translation$translateLine(line)
Arguments
line

a Line object

Returns

A Line object.


Method transformLine()

An alias of translateLine.

Usage
Translation$transformLine(line)
Arguments
line

a Line object

Returns

A Line object.


Method translateEllipse()

Translate a circle or an ellipse.

Usage
Translation$translateEllipse(ell)
Arguments
ell

an Ellipse object or a Circle object

Returns

An Ellipse object or a Circle object.


Method transformEllipse()

An alias of translateEllipse.

Usage
Translation$transformEllipse(ell)
Arguments
ell

an Ellipse object or a Circle object

Returns

An Ellipse object or a Circle object.


Method getMatrix()

Augmented matrix of the translation.

Usage
Translation$getMatrix()
Returns

A 3x3 matrix.


Method asAffine()

Convert the reference translation to an Affine object.

Usage
Translation$asAffine()

Method clone()

The objects of this class are cloneable with this method.

Usage
Translation$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


PlaneGeometry documentation built on Aug. 7, 2020, 1:06 a.m.