🧭 Introduction

Affine Geometry studies geometric transformations that preserve points, straight lines, and planes. While lengths and angles may change, parallelism and ratios along lines remain invariant. This makes affine geometry fundamental in computer vision and rendering systems.


2D Affine Geometry

Translation

A point is translated by a vector :

Used when coordinate systems shift position but retain orientation.


Rotation

If both systems have the same origin and differ only in orientation:

With:

πŸ‘‰ Properties of an orthonormal matrix :

  • Length and angles are preserved

Scaling

Uniform or non-uniform stretching:

Can distort angles and lengths.


Shearing

Deforms the shape by slanting:


Reflections

Several common 2D reflection matrices:

  • About :
  • About :
  • About x-axis:

General Form of Affine Transformations

Where:

  • : Linear part
  • : Translation vector

Properties

  1. Affine invariance: Ratios and linear combinations are preserved
  2. Parallelism preserved
  3. Lengths and angles may change
  4. 3 non-collinear point pairs are needed to define the transformation

Similarity Transformations

Where:

  • : Scaling factor
  • : Rotation matrix
  • : Translation vector

Preserves: ratios, angles, and parallel lines


Rigid Body Motion

Preserves:

  • Ratios
  • Angles
  • Lengths
  • Parallelism

Reflection allowed if


Homogeneous Coordinates

Lift 2D points into 3D for unified matrix transformations:

Affine transformations as 3Γ—3 matrices:

Translation:

Rotation:


3D Affine Geometry

Translation, Scaling

Translation Matrix:

Scaling Matrix:


Rotation Around Coordinate Axes

– Rotation around Z-axis:

(Analogous for


Rotation Around Arbitrary Axis

  1. Rotate the axis to align with z-axis
  2. Apply
  3. Invert the alignment transformation

Final matrix:


General Form of 3D Affine Transformation

Where


Sources