| Translation {PlaneGeometry} | R Documentation |
R6 class representing a translation
Description
A translation is given by a vector v.
Active bindings
vget or set the vector of translation
Methods
Public methods
Method new()
Create a new Translation object.
Usage
Translation$new(v)
Arguments
va 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
Ma point or a two-column matrix of points, one point per row
Method transform()
An alias of translate.
Usage
Translation$transform(M)
Arguments
Ma point or a two-column matrix of points, one point per row
Method translateLine()
Translate a line.
Usage
Translation$translateLine(line)
Arguments
linea
Lineobject
Returns
A Line object.
Method transformLine()
An alias of translateLine.
Usage
Translation$transformLine(line)
Arguments
linea
Lineobject
Returns
A Line object.
Method translateEllipse()
Translate a circle or an ellipse.
Usage
Translation$translateEllipse(ell)
Arguments
ellan
Ellipseobject or aCircleobject
Returns
An Ellipse object or a Circle object.
Method transformEllipse()
An alias of translateEllipse.
Usage
Translation$transformEllipse(ell)
Arguments
ellan
Ellipseobject or aCircleobject
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
deepWhether to make a deep clone.