ArcGIS Pro 2.7 API Reference Guide
SetComponents Method
Example 

ArcGIS.Core.Geometry Namespace > Coordinate3D Structure : SetComponents Method
The value of the x-component.
The value of the y-component.
The value of the z-component.
Sets the components of the Coordinate3D.
Syntax
public void SetComponents( 
   double x,
   double y,
   double z
)
Public Sub SetComponents( _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal z As Double _
) 

Parameters

x
The value of the x-component.
y
The value of the y-component.
z
The value of the z-component.
Example
Coordinate3D v = new Coordinate3D(0, 0, 7);
double inclination = v.Inclination;         // inclination = PI/2

v.SetComponents(-2, -3, 0);
inclination = v.Inclination;                // inclination = 0

v.SetComponents(0, 0, -2);
inclination = v.Inclination;                // inclination = -PI/2
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Coordinate3D Structure
Coordinate3D Members