User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_viewer3dbase.rayintersectdem_itgis_point3d_itgis_point3d_itgis_point3d

Table of Contents

ITGIS_Viewer3DBase.RayIntersectDem method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Viewer3DBase.RayIntersectDem | Methods | Properties

Get intersection point between a ray and a DEM

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

Syntax

// C#
public WordBool RayIntersectDem(
  ITGIS_Point3D _orig,
  ITGIS_Point3D _dir,
  out ITGIS_Point3D _ptg
);
' VisualBasic
Public Function RayIntersectDem(
  ByVal _orig As ITGIS_Point3D,
  ByVal _dir As ITGIS_Point3D,
  <out> _ptg As ITGIS_Point3D
) As WordBool
// Oxygene
public
  function RayIntersectDem(
    _orig : ITGIS_Point3D;
    _dir : ITGIS_Point3D;
    out _ptg : ITGIS_Point3D
  ) : WordBool;

Parameters

Name Type Description
_orig ITGIS_Point3D ray origin coordinates in map units
_dir ITGIS_Point3D ray direction
_ptg ITGIS_Point3D intersection point between a ray and a DEM if Result = True

Result

Type Description
WordBool True if ray intersects DEM, False if not

Remarks

ScaleZ property must be set to 1.0 AdvNavigation must be set to False

2025/01/31 01:05

Page Tools