Notation used in Ruby API documentation
Module: db
Description: A complex transformation
A complex transformation provides magnification, mirroring at the x-axis, rotation by an arbitrary angle and a displacement. This is also the order, the operations are applied. This version can transform integer-coordinate objects into floating-point coordinate objects. This is the generic and exact case, for example for non-integer magnifications.
Complex transformations are extensions of the simple transformation classes (Trans or DTrans in that case) and behave similar.
Transformations can be used to transform points or other objects. Transformations can be combined with the '*' operator to form the transformation which is equivalent to applying the second and then the first. Here is some code:
# Create a transformation that applies a magnification of 1.5, a rotation by 90 degree # and displacement of 10 in x and 20 units in y direction: t = RBA::DCplxTrans::new(1.5, 90, false, 10.0, 20.0) t.to_s # r90 *1.5 10,20 # compute the inverse: t.inverted.to_s # r270 *0.666666667 -13,7 # Combine with another displacement (applied after that): (RBA::DCplxTrans::new(5, 5) * t).to_s # r90 *1.5 15,25 # Transform a point: t.trans(RBA::DPoint::new(100, 200)).to_s # -290,170
The inverse type of the CplxTrans type is VCplxTrans which will transform floating-point to integer coordinate objects. Transformations of CplxTrans type can be concatenated (operator *) with either itself or with transformations of compatible input or output type. This means, the operator CplxTrans * ICplxTrans is allowed (output types of ICplxTrans and input of CplxTrans are identical) while CplxTrans * DCplxTrans is not. See The Database API for more details about the database objects.
new CplxTrans ptr | new | (const DCplxTrans trans, double dbu = 1) | Creates an integer-to-floating-point coordinate transformation from another coordinate flavour |
new CplxTrans ptr | new | (const ICplxTrans trans, double dbu = 1) | Creates an integer-to-floating-point coordinate transformation from another coordinate flavour |
new CplxTrans ptr | new | (const VCplxTrans trans, double dbu = 1) | Creates an integer-to-floating-point coordinate transformation from another coordinate flavour |
new CplxTrans ptr | new | Creates a unit transformation | |
new CplxTrans ptr | new | (const CplxTrans c, double mag = 1, const DVector u = 0,0) | Creates a transformation from another transformation plus a magnification and displacement |
new CplxTrans ptr | new | (const CplxTrans c, double mag = 1, double x = 0, double y = 0) | Creates a transformation from another transformation plus a magnification and displacement |
new CplxTrans ptr | new | (double x, double y) | Creates a transformation from a x and y displacement |
new CplxTrans ptr | new | (const Trans t, double mag = 1) | Creates a transformation from a simple transformation and a magnification |
new CplxTrans ptr | new | (const DVector u) | Creates a transformation from a displacement |
new CplxTrans ptr | new | (double mag = 1, double rot = 0, bool mirrx = false, const DVector u = 0,0) | Creates a transformation using magnification, angle, mirror flag and displacement |
new CplxTrans ptr | new | (double mag = 1, double rot = 0, bool mirrx = false, double x = 0, double y = 0) | Creates a transformation using magnification, angle, mirror flag and displacement |
[const] | bool | != | (const CplxTrans other) | Tests for inequality |
[const] | DCplxTrans | * | (const VCplxTrans t) | Multiplication (concatenation) of transformations |
[const] | CplxTrans | * | (const ICplxTrans t) | Multiplication (concatenation) of transformations |
[const] | double | * | (long d) | Transforms a single distance |
[const] | DPoint | * | (const Point p) | Transforms a point |
[const] | DVector | * | (const Vector p) | Transforms a vector |
[const] | DBox | * | (const Box box) | Transforms a box |
[const] | DEdge | * | (const Edge edge) | Transforms an edge |
[const] | DPolygon | * | (const Polygon polygon) | Transforms a polygon |
[const] | DPath | * | (const Path path) | Transforms a path |
[const] | DText | * | (const Text text) | Transforms a text |
[const] | CplxTrans | * | (const CplxTrans t) | Returns the concatenated transformation |
[const] | bool | < | (const CplxTrans other) | Provides a 'less' criterion for sorting |
[const] | bool | == | (const CplxTrans other) | Tests for equality |
[const] | CplxTrans ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
[const] | double | angle | Gets the angle | |
void | angle= | (double a) | Sets the angle | |
void | assign | (const CplxTrans other) | Assigns another object to self | |
[const] | double | ctrans | (long d) | Transforms a single distance |
[const] | DVector | disp | Gets the displacement | |
void | disp= | (const DVector u) | Sets the displacement | |
[const] | new CplxTrans ptr | dup | Creates a copy of self | |
[const] | unsigned long | hash | Computes a hash value | |
CplxTrans | invert | Inverts the transformation (in place) | ||
[const] | VCplxTrans | inverted | Returns the inverted transformation | |
[const] | bool | is_complex? | Returns true if the transformation is a complex one | |
[const] | bool | is_mag? | Tests, if the transformation is a magnifying one | |
[const] | bool | is_mirror? | Gets the mirror flag | |
[const] | bool | is_ortho? | Tests, if the transformation is an orthogonal transformation | |
[const] | bool | is_unity? | Tests, whether this is a unit transformation | |
[const] | double | mag | Gets the magnification | |
void | mag= | (double m) | Sets the magnification | |
void | mirror= | (bool m) | Sets the mirror flag | |
[const] | int | rot | Returns the respective simple transformation equivalent rotation code if possible | |
[const] | Trans | s_trans | Extracts the simple transformation part | |
[const] | string | to_s | (bool lazy = false, double dbu = 0) | String conversion |
[const] | DPoint | trans | (const Point p) | Transforms a point |
[const] | DVector | trans | (const Vector p) | Transforms a vector |
[const] | DBox | trans | (const Box box) | Transforms a box |
[const] | DEdge | trans | (const Edge edge) | Transforms an edge |
[const] | DPolygon | trans | (const Polygon polygon) | Transforms a polygon |
[const] | DPath | trans | (const Path path) | Transforms a path |
[const] | DText | trans | (const Text text) | Transforms a text |
CplxTrans | M0 | A constant giving "mirrored at the x-axis" transformation | ||
CplxTrans | M135 | A constant giving "mirrored at the 135 degree axis" transformation | ||
CplxTrans | M45 | A constant giving "mirrored at the 45 degree axis" transformation | ||
CplxTrans | M90 | A constant giving "mirrored at the y (90 degree) axis" transformation | ||
CplxTrans | R0 | A constant giving "unrotated" (unit) transformation | ||
CplxTrans | R180 | A constant giving "rotated by 180 degree counterclockwise" transformation | ||
CplxTrans | R270 | A constant giving "rotated by 270 degree counterclockwise" transformation | ||
CplxTrans | R90 | A constant giving "rotated by 90 degree counterclockwise" transformation | ||
new CplxTrans ptr | from_s | (string s) | Creates an object from a string |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[static] | new CplxTrans ptr | from_dtrans | (const DCplxTrans trans, double dbu = 1) | Use of this method is deprecated. Use new instead |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead | |
[const] | ICplxTrans | to_itrans | (double dbu = 1) | Use of this method is deprecated |
[const] | DCplxTrans | to_trans | (double dbu = 1) | Use of this method is deprecated |
[const] | VCplxTrans | to_vtrans | (double dbu = 1) | Use of this method is deprecated |
!= | Signature: [const] bool != (const CplxTrans other) Description: Tests for inequality | |||||||||
* | (1) Signature: [const] DCplxTrans * (const VCplxTrans t) Description: Multiplication (concatenation) of transformations
The * operator returns self*t ("t is applied before this transformation"). | |||||||||
(2) Signature: [const] CplxTrans * (const ICplxTrans t) Description: Multiplication (concatenation) of transformations
The * operator returns self*t ("t is applied before this transformation"). | ||||||||||
(3) Signature: [const] double * (long d) Description: Transforms a single distance
The "ctrans" method transforms the given distance. This is equivalent to multiplying with the magnification. For the simple transformations, there is no magnification and no modification of the distance. The product '*' has been added as a synonym in version 0.28. The distance can be signed since version 0.29.3. Python specific notes: | ||||||||||
(4) Signature: [const] DPoint * (const Point p) Description: Transforms a point
The "trans" method or the * operator transforms the given point. q = t(p) The * operator has been introduced in version 0.25. Python specific notes: | ||||||||||
(5) Signature: [const] DVector * (const Vector p) Description: Transforms a vector
The "trans" method or the * operator transforms the given vector. w = t(v) Vector transformation has been introduced in version 0.25. Python specific notes: | ||||||||||
(6) Signature: [const] DBox * (const Box box) Description: Transforms a box
't*box' or 't.trans(box)' is equivalent to box.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(7) Signature: [const] DEdge * (const Edge edge) Description: Transforms an edge
't*edge' or 't.trans(edge)' is equivalent to edge.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(8) Signature: [const] DPolygon * (const Polygon polygon) Description: Transforms a polygon
't*polygon' or 't.trans(polygon)' is equivalent to polygon.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(9) Signature: [const] DPath * (const Path path) Description: Transforms a path
't*path' or 't.trans(path)' is equivalent to path.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(10) Signature: [const] DText * (const Text text) Description: Transforms a text
't*text' or 't.trans(text)' is equivalent to text.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(11) Signature: [const] CplxTrans * (const CplxTrans t) Description: Returns the concatenated transformation
The * operator returns self*t ("t is applied before this transformation"). | ||||||||||
< | Signature: [const] bool < (const CplxTrans other) Description: Provides a 'less' criterion for sorting This method is provided to implement a sorting order. The definition of 'less' is opaque and might change in future versions. | |||||||||
== | Signature: [const] bool == (const CplxTrans other) Description: Tests for equality | |||||||||
M0 | Signature: [static] CplxTrans M0 Description: A constant giving "mirrored at the x-axis" transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
M135 | Signature: [static] CplxTrans M135 Description: A constant giving "mirrored at the 135 degree axis" transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
M45 | Signature: [static] CplxTrans M45 Description: A constant giving "mirrored at the 45 degree axis" transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
M90 | Signature: [static] CplxTrans M90 Description: A constant giving "mirrored at the y (90 degree) axis" transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
R0 | Signature: [static] CplxTrans R0 Description: A constant giving "unrotated" (unit) transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
R180 | Signature: [static] CplxTrans R180 Description: A constant giving "rotated by 180 degree counterclockwise" transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
R270 | Signature: [static] CplxTrans R270 Description: A constant giving "rotated by 270 degree counterclockwise" transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
R90 | Signature: [static] CplxTrans R90 Description: A constant giving "rotated by 90 degree counterclockwise" transformation The previous integer constant has been turned into a transformation in version 0.25. Python specific notes: | |||||||||
_const_cast | Signature: [const] CplxTrans ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. | |||||||||
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. | |||||||||
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. | |||||||||
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. | |||||||||
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. | |||||||||
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. | |||||||||
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. | |||||||||
angle | Signature: [const] double angle Description: Gets the angle
Note that the simple transformation returns the angle in units of 90 degree. Hence for a simple trans (i.e. Trans), a rotation angle of 180 degree delivers a value of 2 for the angle attribute. The complex transformation, supporting any rotation angle returns the angle in degree. Python specific notes: | |||||||||
angle= | Signature: void angle= (double a) Description: Sets the angle
See angle for a description of that attribute. Python specific notes: | |||||||||
assign | Signature: void assign (const CplxTrans other) Description: Assigns another object to self | |||||||||
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. | |||||||||
ctrans | Signature: [const] double ctrans (long d) Description: Transforms a single distance
The "ctrans" method transforms the given distance. This is equivalent to multiplying with the magnification. For the simple transformations, there is no magnification and no modification of the distance. The product '*' has been added as a synonym in version 0.28. The distance can be signed since version 0.29.3. Python specific notes: | |||||||||
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. | |||||||||
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. | |||||||||
disp | Signature: [const] DVector disp Description: Gets the displacement Python specific notes: | |||||||||
disp= | Signature: void disp= (const DVector u) Description: Sets the displacement
Python specific notes: | |||||||||
dup | Signature: [const] new CplxTrans ptr dup Description: Creates a copy of self Python specific notes: | |||||||||
from_dtrans | Signature: [static] new CplxTrans ptr from_dtrans (const DCplxTrans trans, double dbu = 1) Description: Creates an integer-to-floating-point coordinate transformation from another coordinate flavour Use of this method is deprecated. Use new instead The 'dbu' argument is used to transform the input space from floating-point units to integer units. Formally, the CplxTrans transformation is initialized with 'trans * from_dbu' where 'from_dbu' is the transformation into micrometer space, or more precisely 'CplxTrans(mag=dbu)'. This constructor has been introduced in version 0.25. The 'dbu' argument has been added in version 0.29. Python specific notes: | |||||||||
from_s | Signature: [static] new CplxTrans ptr from_s (string s) Description: Creates an object from a string Creates the object from a string representation (as returned by to_s) This method has been added in version 0.23. | |||||||||
hash | Signature: [const] unsigned long hash Description: Computes a hash value Returns a hash value for the given transformation. This method enables transformations as hash keys. This method has been introduced in version 0.25. Python specific notes: | |||||||||
invert | Signature: CplxTrans invert Description: Inverts the transformation (in place)
Inverts the transformation and replaces this transformation by its inverted one. | |||||||||
inverted | Signature: [const] VCplxTrans inverted Description: Returns the inverted transformation
Returns the inverted transformation. This method does not modify the transformation. | |||||||||
is_complex? | Signature: [const] bool is_complex? Description: Returns true if the transformation is a complex one If this predicate is false, the transformation can safely be converted to a simple transformation. Otherwise, this conversion will be lossy. The predicate value is equivalent to 'is_mag || !is_ortho'. This method has been introduced in version 0.27.5. | |||||||||
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. | |||||||||
is_mag? | Signature: [const] bool is_mag? Description: Tests, if the transformation is a magnifying one This is the recommended test for checking if the transformation represents a magnification. | |||||||||
is_mirror? | Signature: [const] bool is_mirror? Description: Gets the mirror flag If this property is true, the transformation is composed of a mirroring at the x-axis followed by a rotation by the angle given by the angle property. Python specific notes: | |||||||||
is_ortho? | Signature: [const] bool is_ortho? Description: Tests, if the transformation is an orthogonal transformation If the rotation is by a multiple of 90 degree, this method will return true. | |||||||||
is_unity? | Signature: [const] bool is_unity? Description: Tests, whether this is a unit transformation | |||||||||
mag | Signature: [const] double mag Description: Gets the magnification Python specific notes: | |||||||||
mag= | Signature: void mag= (double m) Description: Sets the magnification
Python specific notes: | |||||||||
mirror= | Signature: void mirror= (bool m) Description: Sets the mirror flag
"mirroring" describes a reflection at the x-axis which is included in the transformation prior to rotation. Python specific notes: | |||||||||
new | (1) Signature: [static] new CplxTrans ptr new (const DCplxTrans trans, double dbu = 1) Description: Creates an integer-to-floating-point coordinate transformation from another coordinate flavour The 'dbu' argument is used to transform the input space from floating-point units to integer units. Formally, the CplxTrans transformation is initialized with 'trans * from_dbu' where 'from_dbu' is the transformation into micrometer space, or more precisely 'CplxTrans(mag=dbu)'. This constructor has been introduced in version 0.25. The 'dbu' argument has been added in version 0.29. Python specific notes: | |||||||||
(2) Signature: [static] new CplxTrans ptr new (const ICplxTrans trans, double dbu = 1) Description: Creates an integer-to-floating-point coordinate transformation from another coordinate flavour The 'dbu' argument is used to transform the output space from integer units to floating-point units. Formally, the CplxTrans transformation is initialized with 'from_dbu * trans' where 'from_dbu' is the transformation into micrometer space, or more precisely 'CplxTrans(mag=dbu)'. This constructor has been introduced in version 0.25. The 'dbu' argument has been added in version 0.29. Python specific notes: | ||||||||||
(3) Signature: [static] new CplxTrans ptr new (const VCplxTrans trans, double dbu = 1) Description: Creates an integer-to-floating-point coordinate transformation from another coordinate flavour The 'dbu' argument is used to transform the input and output space from integer units to floating-point units and vice versa. Formally, the DCplxTrans transformation is initialized with 'from_dbu * trans * from_dbu' where 'from_dbu' is the transformation into micrometer space, or more precisely 'CplxTrans(mag=dbu)'. This constructor has been introduced in version 0.25. The 'dbu' argument has been added in version 0.29. Python specific notes: | ||||||||||
(4) Signature: [static] new CplxTrans ptr new Description: Creates a unit transformation Python specific notes: | ||||||||||
(5) Signature: [static] new CplxTrans ptr new (const CplxTrans c, double mag = 1, const DVector u = 0,0) Description: Creates a transformation from another transformation plus a magnification and displacement
Creates a new transformation from a existing transformation. This constructor is provided for creating duplicates and backward compatibility since the constants are transformations now. It will copy the original transformation and add the given displacement. This variant has been introduced in version 0.25. Python specific notes: | ||||||||||
(6) Signature: [static] new CplxTrans ptr new (const CplxTrans c, double mag = 1, double x = 0, double y = 0) Description: Creates a transformation from another transformation plus a magnification and displacement
Creates a new transformation from a existing transformation. This constructor is provided for creating duplicates and backward compatibility since the constants are transformations now. It will copy the original transformation and add the given displacement. This variant has been introduced in version 0.25. Python specific notes: | ||||||||||
(7) Signature: [static] new CplxTrans ptr new (double x, double y) Description: Creates a transformation from a x and y displacement
This constructor will create a transformation with the specified displacement but no rotation. Python specific notes: | ||||||||||
(8) Signature: [static] new CplxTrans ptr new (const Trans t, double mag = 1) Description: Creates a transformation from a simple transformation and a magnification Creates a magnifying transformation from a simple transformation and a magnification. Python specific notes: | ||||||||||
(9) Signature: [static] new CplxTrans ptr new (const DVector u) Description: Creates a transformation from a displacement Creates a transformation with a displacement only. This method has been added in version 0.25. Python specific notes: | ||||||||||
(10) Signature: [static] new CplxTrans ptr new (double mag = 1, double rot = 0, bool mirrx = false, const DVector u = 0,0) Description: Creates a transformation using magnification, angle, mirror flag and displacement
The sequence of operations is: magnification, mirroring at x axis, rotation, application of displacement. Python specific notes: | ||||||||||
(11) Signature: [static] new CplxTrans ptr new (double mag = 1, double rot = 0, bool mirrx = false, double x = 0, double y = 0) Description: Creates a transformation using magnification, angle, mirror flag and displacement
The sequence of operations is: magnification, mirroring at x axis, rotation, application of displacement. Python specific notes: | ||||||||||
rot | Signature: [const] int rot Description: Returns the respective simple transformation equivalent rotation code if possible If this transformation is orthogonal (is_ortho () == true), then this method will return the corresponding fixpoint transformation, not taking into account magnification and displacement. If the transformation is not orthogonal, the result reflects the quadrant the rotation goes into. | |||||||||
s_trans | Signature: [const] Trans s_trans Description: Extracts the simple transformation part The simple transformation part does not reflect magnification or arbitrary angles. Rotation angles are rounded down to multiples of 90 degree. Magnification is fixed to 1.0. | |||||||||
to_itrans | Signature: [const] ICplxTrans to_itrans (double dbu = 1) Description: Converts the transformation to another transformation with integer input and output coordinates Use of this method is deprecated This method is redundant with the conversion constructors. Instead of 'to_itrans' use the conversion constructor: itrans = RBA::ICplxTrans::new(trans, dbu) This method has been introduced in version 0.25 and was deprecated in version 0.29. | |||||||||
to_s | Signature: [const] string to_s (bool lazy = false, double dbu = 0) Description: String conversion If 'lazy' is true, some parts are omitted when not required. If a DBU is given, the output units will be micrometers. The lazy and DBU arguments have been added in version 0.27.6. Python specific notes: | |||||||||
to_trans | Signature: [const] DCplxTrans to_trans (double dbu = 1) Description: Converts the transformation to another transformation with floating-point input coordinates Use of this method is deprecated This method is redundant with the conversion constructors. Instead of 'to_trans' use the conversion constructor: dtrans = RBA::DCplxTrans::new(trans, dbu) This method has been introduced in version 0.25 and was deprecated in version 0.29. | |||||||||
to_vtrans | Signature: [const] VCplxTrans to_vtrans (double dbu = 1) Description: Converts the transformation to another transformation with integer output and floating-point input coordinates Use of this method is deprecated This method is redundant with the conversion constructors. Instead of 'to_vtrans' use the conversion constructor: vtrans = RBA::VCplxTrans::new(trans, dbu) This method has been introduced in version 0.25 and was deprecated in version 0.29. | |||||||||
trans | (1) Signature: [const] DPoint trans (const Point p) Description: Transforms a point
The "trans" method or the * operator transforms the given point. q = t(p) The * operator has been introduced in version 0.25. Python specific notes: | |||||||||
(2) Signature: [const] DVector trans (const Vector p) Description: Transforms a vector
The "trans" method or the * operator transforms the given vector. w = t(v) Vector transformation has been introduced in version 0.25. Python specific notes: | ||||||||||
(3) Signature: [const] DBox trans (const Box box) Description: Transforms a box
't*box' or 't.trans(box)' is equivalent to box.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(4) Signature: [const] DEdge trans (const Edge edge) Description: Transforms an edge
't*edge' or 't.trans(edge)' is equivalent to edge.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(5) Signature: [const] DPolygon trans (const Polygon polygon) Description: Transforms a polygon
't*polygon' or 't.trans(polygon)' is equivalent to polygon.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(6) Signature: [const] DPath trans (const Path path) Description: Transforms a path
't*path' or 't.trans(path)' is equivalent to path.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: | ||||||||||
(7) Signature: [const] DText trans (const Text text) Description: Transforms a text
't*text' or 't.trans(text)' is equivalent to text.transformed(t). This convenience method has been introduced in version 0.25. Python specific notes: |