Transformation2D

A Transformation2D is used to position an object in 2D space (e.g. on a drawing).

It consists of a reference to a CartesianPoint2D as origin and a 2 ⨯ 2 matrix a. The matrix is given by the attributes [a11...a22], with the numbers representing the index of the matrix element aij where i is the row and j the column index of the matrix.

To place an object with a Transformation2D its origin is translated in space to the CartesianPoint2D origin and every point P = (x,y) of the object is transformed to P' by applying the matrix multiplication: P'= a · P

With a suitable definition of the transformation matrix, a wide variety of geometric operations can be mapped. Which of these operations are permissible depends on the respective application and cannot be defined in general terms. For example, scaling and mirroring are probably not permissible operations when creating drawings in true scale.

General Information

AttributeValue
Ownergeo_2d
Applied Stereotype
Base ClassifierExtendableElement
Is Abstractfalse
Derived Classifiers

Attributes

NameTypeMult.DescriptionOwning Classifier
a11Double1Transformation2D
a12Double1Transformation2D
a21Double1Transformation2D
a22Double1Transformation2D

Outgoing Relations

Other EndThis EndGeneral
RoleTypeMult.Agg.UniqueOrderedMult.Description
originCartesianPoint2D1NYN0..*References the CartesianPoint2D that is the origin of the Transformation2D.

Incoming Relations

This EndOther EndGeneral
RoleMult.Agg.UniqueOrderedTypeMult.Description
orientation0..1YYNOccurrenceOrUsageViewItem2D1Specifies the orientation of the view item.
orientation0..1YYNNetworkNodeViewItem1Specifies the position / placement of the NetworkNodeViewItem within the layout.
orientation0..1YYNConnectionNodeViewItem1Specifies the position / placement of the ConnectionNodeViewItem within the layout.
orientation0..1YYNComponentNodeViewItem1Specifies the position / placement of the ConnectionNodeViewItem within the layout.
Previous