Stretch
- class Stretch(axis_angle: float, stretch_factor: float)
A
Stretch
transformation 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
Stretch
to a vector.The inverse
HomogeneousTransformation
of this one.- inverse()
The inverse
HomogeneousTransformation
of this one.