WolframLang: Geometric Transformation Functions

By Xah Lee. Date: . Last updated: .

Geometric Transformation

When programing graphics, especially when doing things like tiling, or group symmetries, often you need to apply a geometric transformation to the graphics. (e.g. rotation, scaling, shear, reflection, translation) (or other non-linear transform (e.g. fish lens transform, blackhole).)

there are two main things you want to do:

This page shows how to use WolframLang to do them.

Symbolic Representation of Geometric Transform Functions

the following, each represents a transform function symbolically:

they all return a TransformationFunction[data] that represent the transformation symbolically.

These functions are especially suitable if you are doing geometric transformations in the context of group theory. Namely, wallpaper group, space group. It allows you to compose group operations, and finally apply it to graphics.

TransformationFunction

TransformationFunction is the generalized symbolic representation of geometric transformation.

Apply a Transform to Points

Apply a Transform to Graphics Primitives

use GeometricTransformation

Compose Transformations

Convert to Matrix Representation

use TransformationMatrix

WolframLang, Graphics Programing