Transformer

interface Transformer<O>(source)

Interface for geometric transformations.

A transformation is a function that maps objects in a geometric space to other objects, possibly changing their position, orientation, or scale. Examples include translations, rotations, reflections, and scalings.

Parameters

O

The type of the geometric object being transformed.

Inheritors

Functions

Link copied to clipboard
abstract fun apply(obj: O): O

Applies the transformation to a point.

Link copied to clipboard
abstract fun inverse(): Transformer<O>

Get the inverse of this transformation.

Link copied to clipboard

Checks if the transformation preserves the orientation of points. For example: In 3D space, a translation preserves orientation, while a reflection does not.