ArcObjects Library Reference (Geometry)  

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 (Code Files: GeometryUtilities)

.NET Related Topics

How to work with IExtrude