Stretch
- class Stretch(axis_angle: float, stretch_factor: float)
A
Stretchtransformation stretches the plane by a givenstretch_factor,f, in the direction of line passing through(0, 0, 0)at a givenaxis_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 this
Stretchto a vector.The inverse
HomogeneousTransformationof this one.- inverse()
The inverse
HomogeneousTransformationof this one.