Scale

class Scale(scale_factor: float)

A Scale transformation scales the distance a vector is from (0, 0, 0) by a given scale_factor, f.

Its matrix looks like:

┏              ┓
┃  f  0  0  x  ┃
┃  0  f  0  y  ┃
┃  0  0  1  z  ┃
┃  0  0  0  1  ┃
┗              ┛

Attributes

scale_factor

The uniform scale factor.

Methods

apply

Apply this Scale to a vector.

inverse

The inverse HomogeneousTransformation of this one.

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

Apply this Scale to a vector.

inverse()

The inverse HomogeneousTransformation of this one.

scale_factor

The uniform scale factor.