Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::editor::DecomposedTransform Struct Reference

Scale-rotate-translate view of a transform, used by the inspector's editable transform fields. The equivalent matrix is Scale(scale) * Rotate(rotationRadians) * Translate(translation) with Donner's apply-left-to-right composition (scale first, translation last). More...

#include "donner/editor/SidebarPresenter.h"

Public Attributes

Vector2d translation
 Translation components (e, f).
double rotationRadians = 0.0
 Rotation angle, in radians.
Vector2d scale = Vector2d(1.0, 1.0)
 Per-axis scale. scale.y is negative for flips.

Detailed Description

Scale-rotate-translate view of a transform, used by the inspector's editable transform fields. The equivalent matrix is Scale(scale) * Rotate(rotationRadians) * Translate(translation) with Donner's apply-left-to-right composition (scale first, translation last).

Member Data Documentation

◆ rotationRadians

double donner::editor::DecomposedTransform::rotationRadians = 0.0

Rotation angle, in radians.

◆ scale

Vector2d donner::editor::DecomposedTransform::scale = Vector2d(1.0, 1.0)

Per-axis scale. scale.y is negative for flips.

◆ translation

Vector2d donner::editor::DecomposedTransform::translation

Translation components (e, f).


The documentation for this struct was generated from the following file: