User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.transform_itgis_point3d_double_double_double_double_496f5f4553040c95f45e95f88cfa160a

ITGIS_Shape.Transform method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Transform | Methods | Properties

Transforms shape geometry using a 3x3 matrix and translation vector, returning a new transformed shape.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public ITGIS_Shape Transform(
  ITGIS_Point3D _origin,
  double _m11,
  double _m12,
  double _m13,
  double _m21,
  double _m22,
  double _m23,
  double _m31,
  double _m32,
  double _m33,
  double _dx,
  double _dy,
  double _dz
);
' VisualBasic
Public Function Transform(
  ByVal _origin As ITGIS_Point3D,
  ByVal _m11 As Double,
  ByVal _m12 As Double,
  ByVal _m13 As Double,
  ByVal _m21 As Double,
  ByVal _m22 As Double,
  ByVal _m23 As Double,
  ByVal _m31 As Double,
  ByVal _m32 As Double,
  ByVal _m33 As Double,
  ByVal _dx As Double,
  ByVal _dy As Double,
  ByVal _dz As Double
) As ITGIS_Shape
// Oxygene
public
  function Transform(
    _origin : ITGIS_Point3D;
    _m11 : Double;
    _m12 : Double;
    _m13 : Double;
    _m21 : Double;
    _m22 : Double;
    _m23 : Double;
    _m31 : Double;
    _m32 : Double;
    _m33 : Double;
    _dx : Double;
    _dy : Double;
    _dz : Double
  ) : ITGIS_Shape;

Parameters

Name Type Description
_origin ITGIS_Point3D Origin point used as the transformation pivot.
_m11 double
Double
Matrix element [1,1].
_m12 double
Double
Matrix element [1,2].
_m13 double
Double
Matrix element [1,3].
_m21 double
Double
Matrix element [2,1].
_m22 double
Double
Matrix element [2,2].
_m23 double
Double
Matrix element [2,3].
_m31 double
Double
Matrix element [3,1].
_m32 double
Double
Matrix element [3,2].
_m33 double
Double
Matrix element [3,3].
_dx double
Double
Translation offset applied in the X direction.
_dy double
Double
Translation offset applied in the Y direction.
_dz double
Double
Translation offset applied in the Z direction.

Result

Type Description
ITGIS_Shape A newly created shape containing the transformed geometry.

Remarks

PURPOSE: Applies affine or general linear transformation to shape geometry for scaling, rotation, skewing, translation, and related geometric operations.

BEHAVIOR: Transforms coordinates relative to _origin using the supplied matrix and translation values, preserving the shape type while producing transformed vertex coordinates.

CONSTRAINTS: Always returns a new shape instance. Results depend on the supplied matrix values and dimensionality of the underlying geometry.

Example

Rotate shape by 30 degrees

References

2026/07/05 01:25

Page Tools