Stretch

class Stretch(axis_angle: float, stretch_factor: float)

A Stretch transformation stretches the plane by a given stretch_factor, f, in the direction of line passing through (0, 0, 0) at a given axis_angle, θ.

Its matrix looks like:

┏                                                                    ┓
┃  1 - (f-1)*cos(θ)cos(θ)      (f-1)*sin(θ)cos(θ)       0       0    ┃
┃    -(f-1)*sin(θ)cos(θ)    1 + (f-1)*sin(θ)sin(θ)      0       0    ┃
┃             0                        0                1       0    ┃
┃             0                        0                0       1    ┃
┗                                                                    ┛

Methods

apply

Apply this Stretch to a vector.

inverse

The inverse HomogeneousTransformation of this one.

apply(vector: ndarray[3]) ndarray[3]

Apply this Stretch to a vector.

inverse()

The inverse HomogeneousTransformation of this one.