Class DTrans (version 0.18)Description: A simple transformation The simple transformation applies a displacement vector and a simple fixpoint transformation. This version acts on double coordinates.
Method Overview
[const] bool !=( DTrans )Description: Inequality test
[const] DTrans *( DTrans * )Description: Multiplication (concatenation) of transformations The * operator returns self*t ("t is applied before this transformation").
[const] bool <( DTrans )Description: A sorting criterion
[const] bool ==( DTrans )Description: Equality test
[const] int angleDescription: Accessor to the angle in units of 90 degree
assign( DTrans other )Description: Assign the contents of another object to self This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.
[const] double ctrans( double d )Description: The transformation of a distance The "ctrans" method transforms the given distance. e = t(d). For the simple transformations, there is no magnification and no modification of the distance therefore.
destroyDescription: Explicitly destroy the object Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.
[const] bool destroyedDescription: Tell, if the object was 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.
[const] const ref DPoint dispDescription: Accessor to the point
[const] DTrans dupDescription: Creates a copy of self.
[static] DTrans from_itrans( Trans int_trans )Description: Conversion constructor from an integer coordinate transformation
DTrans invertDescription: In-place inversion Inverts the transformation and replaces this object by the inverted one.
[const] DTrans invertedDescription: Inversion Returns the inverted transformation
[const] bool is_mirror?Description: Accessor to the mirror flag
[static] int m0Description: Angle/mirror code for the "mirrored at the x-axis" transformation
[static] int m135Description: Angle/mirror code for the "mirrored at the 135 degree axis" transformation
[static] int m45Description: Angle/mirror code for the "mirrored at the 45 degree axis" transformation
[static] int m90Description: Angle/mirror code for the "mirrored at the y (90 degree) axis" transformation
[static] DTrans new( int rot, bool mirr, ref DPoint u )
|
rot: | The rotation in units of 90 degree |
mirrx: | True, if mirrored at x axis |
u: | The displacement |
Description: The standard constructor using angle and mirror flag and two coordinate values for displacement
The sequence of operations is: mirroring at x axis, rotation, application of displacement.
rot: | The rotation in units of 90 degree |
mirrx: | True, if mirrored at x axis |
x: | The horizontal displacement |
y: | The vertical displacement |
Description: The standard constructor using a code rather than angle and mirror
f: | The rotation/mirror code (r0 .. m135 constants) |
u: | The displacement |
Description: The standard constructor using a code rather than angle and mirror and two coordinate values for displacement
f: | The rotation/mirror code (r0 .. m135 constants) |
x: | The horizontal displacement |
y: | The vertical displacement |
Description: Creates a unit transformation
Description: The standard constructor using a displacement only
u: | The displacement |
Description: The standard constructor using a displacement given as two coordinates
x: | The horizontal displacement |
y: | The vertical displacement |
Description: Conversion constructor from a fixpoint transformation
This constructor will create a transformation with a fixpoint transformation but no displacement.
f: | The rotation/mirror code (r0 .. m135 constants) |
Description: Angle/mirror code for the "unrotated" transformation
Description: Angle/mirror code for the "rotated by 180 degree counterclockwise" transformation
Description: Angle/mirror code for the "rotated by 270 degree counterclockwise" transformation
Description: Angle/mirror code for the "rotated by 90 degree counterclockwise" transformation
Description: Accessor to the angle/mirror code
Description: String conversion
Description: The transformation of a point
The "trans" method transforms the given point. q = t(p)
p: | The point to transform |
returns: | The transformed point |