vivid v0.1.1 Vivid.Transform.Point

Standard transformations which can be applied to points without knowing the details of the geometry.

Summary

Functions

Rotate a point degrees around an origin point

Scale a point (ie move it) by multiplying it’s distance from the origin point by x_factor and y_factor. The default origin point is {0, 0}

Translate a point (ie move it) by adding x and y to it’s coordinates

Functions

rotate(point1, point2, radians)

Rotate a point degrees around an origin point.

scale(point, x_factor, y_factor)

Scale a point (ie move it) by multiplying it’s distance from the origin point by x_factor and y_factor. The default origin point is {0, 0}

scale(point1, x_factor, y_factor, point2)
translate(point, x, y)

Translate a point (ie move it) by adding x and y to it’s coordinates.