Scale
- class Scale(scale_factor: float)
A
Scaletransformation 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
Scaleto a vector.The inverse
HomogeneousTransformationof this one.- inverse()
The inverse
HomogeneousTransformationof this one.
- scale_factor
The uniform scale factor.