Scale
- class Scale(scale_factor: float)
A
Scale
transformation scales the distance a vector is from(0, 0, 0)
by a givenscale_factor
,f
.Its matrix looks like:
┏ ┓ ┃ f 0 0 x ┃ ┃ 0 f 0 y ┃ ┃ 0 0 1 z ┃ ┃ 0 0 0 1 ┃ ┗ ┛
Attributes
The uniform scale factor.
Methods
Apply this
Scale
to a vector.The inverse
HomogeneousTransformation
of this one.- inverse()
The inverse
HomogeneousTransformation
of this one.
- scale_factor
The uniform scale factor.