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

Attribute Value
Owner geo_2d
Applied Stereotype
Base Classifier ExtendableElement
Is Abstract false
Derived Classifiers

Attributes

Name Type Mult. Description Owning Classifier
a11 Double 1 Transformation2D
a12 Double 1 Transformation2D
a21 Double 1 Transformation2D
a22 Double 1 Transformation2D

Outgoing Relations

Other End This End General
Role Type Mult. Agg. Unique Ordered Mult. Description
origin CartesianPoint2D 1 N Y N 0..* References the CartesianPoint2D that is the origin of the Transformation2D.

Incoming Relations

This End Other End General
Role Mult. Agg. Unique Ordered Type Mult. Description
orientation 0..1 Y Y N OccurrenceOrUsageViewItem2D 1 Specifies the orientation of the view item.
orientation 0..1 Y Y N NetworkNodeViewItem 1 Specifies the position / placement of the NetworkNodeViewItem within the layout.
orientation 0..1 Y Y N ConnectionNodeViewItem 1 Specifies the position / placement of the ConnectionNodeViewItem within the layout.
orientation 0..1 Y Y N ComponentNodeViewItem 1 Specifies the position / placement of the ConnectionNodeViewItem within the layout.
Previous