This document is archived and information here might be outdated.  Recommended version.


IVector3D.SetComponents Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IV > IVector3D Interface > IVector3D.SetComponents Method
ArcGIS Developer Help

IVector3D.SetComponents Method

Set the values of the vector's components.

[Visual Basic .NET]
Public Sub SetComponents ( _
    ByVal dx As Double, _
    ByVal dy As Double, _
    ByVal dz As Double _
)
[C#]
public void SetComponents (
    double dx,
    double dy,
    double dz
);
[C++]
HRESULT SetComponents(
  double dx,
  double dy,
  double dz
);
[C++]
Parameters
dx 

dx is a parameter of type double dy
dy is a parameter of type double dz
dz is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Sets the X Component, Y Component, and Z Component of the 3 Dimensional vector.

Remarks

 

Vector3D SetComponents Example

[C#]

    public IVector3D CreateVector3D(double x, double y, double z)
    {
        IVector3D vector3D = new Vector3DClass();
        vector3D.SetComponents(x, y, z);
        return vector3D;
    }

See Also

IVector3D Interface

.NET Samples

3D multipatch examples