T

fun T(dx: Double, dy: Double): Motor

Builds the motor translating by (dx, dy).

The translator 𝟙 + (dx/2)·e42 − (dy/2)·e41 — R's at-infinity limit (see Motor). The versor representation's half coefficients stay inside the factory: p * T(dx, dy) moves p by exactly (dx, dy).

Return

The translator Motor.

Parameters

dx

The Euclidean x-displacement.

dy

The Euclidean y-displacement.


fun T(direction: Direction): Motor

Builds the motor translating by direction — a free vector's magnitude and orientation taken as a displacement.

The translator whose generator is the Direction itself: its px/py blades are exactly the translator's, so the direction's length is the displacement length.

Return

The translator Motor.

Parameters

direction

The displacement.