Open CASCADE Technology 6.6.0
Data Structures | Functions
gp_GTrsf2d.hxx File Reference
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <gp_Mat2d.hxx>
#include <gp_XY.hxx>
#include <gp_TrsfForm.hxx>
#include <Standard_Real.hxx>
#include <Standard_Storable.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_PrimitiveTypes.hxx>
#include <gp_GTrsf2d.lxx>

Data Structures

class  gp_GTrsf2d
 Defines a non persistent transformation in 2D space.
This transformation is a general transformation.
It can be a Trsf2d from package gp, an affinity, or you can
define your own transformation giving the corresponding
matrix of transformation.

With a GTrsf2d you can transform only a doublet of coordinates
XY. It is not possible to transform other geometric objects
because these transformations can change the nature of non-
elementary geometric objects.
A GTrsf2d is represented with a 2 rows * 3 columns matrix :

V1 V2 T XY XY
| a11 a12 a14 | | x | | x'|
| a21 a22 a24 | | y | | y'|
| 0 0 1 | | 1 | | 1 |

where {V1, V2} defines the vectorial part of the
transformation and T defines the translation part of
the transformation.
Warning
A GTrsf2d transformation is only applicable on
coordinates. Be careful if you apply such a
transformation to all the points of a geometric object,
as this can change the nature of the object and thus
render it incoherent!
Typically, a circle is transformed into an ellipse by an
affinity transformation. To avoid modifying the nature of
an object, use a gp_Trsf2d transformation instead, as
objects of this class respect the nature of geometric objects.
More...

Functions

const Handle< Standard_Type > & STANDARD_TYPE (gp_GTrsf2d)

Function Documentation

const Handle< Standard_Type >& STANDARD_TYPE ( gp_GTrsf2d  )
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines