times

operator fun times(scalar: Double): Transform2d(source)

Scales the transform by a scalar.

This scales both the translation and rotation components. Useful for interpolating between transforms.

Return

the scaled transform

Parameters

scalar

the scaling factor


Transforms a vector by this transformation.

Applies the rotation and translation to the vector.

Return

the transformed vector

Parameters

vec

the vector to transform