Skip to content

editorGlobalsRelativeRotationAlignment

Class: RelativeRotationAlignment

Given a number of RotationAlignValues, this class creates a FixedRotationConstraint that combines all the rotations into one. ToDo: Rename to something more useful, e.g. CombinedRotationAlignment

Hierarchy

RotationAlignment

RelativeRotationAlignment

Index

Constructors

Properties

Methods

Constructors

constructor

+ new RelativeRotationAlignment(...rotations: AlignValue[]): RelativeRotationAlignment

Defined in src/model/data/aligning/Alignments/RelativeRotationAlignment.ts:11

Parameters:

Name Type
...rotations AlignValue[]

Returns: RelativeRotationAlignment

Properties

Private Readonly rotations

rotations: readonly AlignValue[]

Defined in src/model/data/aligning/Alignments/RelativeRotationAlignment.ts:11

Methods

getConstraint

getConstraint(): FixedRotationConstraint

Overrides Alignment.getConstraint

Defined in src/model/data/aligning/Alignments/RelativeRotationAlignment.ts:20

Returns: FixedRotationConstraint

Actual rotation