This document is archived and information here might be outdated. Recommended version. |
Set the vector using polar components. Angles are in radians.
[Visual Basic .NET]
Public Sub PolarSet ( _
ByVal Azimuth As Double, _
ByVal Inclination As Double, _
ByVal radiusLength As Double _
)
[C#]
public void PolarSet (
double Azimuth,
double Inclination,
double radiusLength
);
[C++]
HRESULT PolarSet(
double Azimuth,
double Inclination,
double radiusLength
);
[C++] Parameters Azimuth
Azimuth is a parameter of type double Inclination
Inclination is a parameter of type double radiusLength
radiusLength is a parameter of type double
Sets the X Component, Y Component, and Z Component values of the 3 Dimensional vector that correspond to the input Azimuth, Inclination, and Radius Length (Magnitude) values. The Azimuth and Inclination are measured in radians.
public IVector3D CreateVector3DPolar(double azimuth, double inclination, double magnitude)
{
IVector3D vector3D = new Vector3DClass();
vector3D.PolarSet(azimuth, inclination, magnitude);
return vector3D;
}