AGI STK VGT 11 Send comments on this topic.
CreateCrossProductVector Method (IAgCrdnVectorFactory)
See Also  Example
VectorName
Specify a vector name.
VectorA
Specify the first of the two vectors used compute the cross product.
VectorB
Specify the second of the two vectors used compute the cross product.





Description

Creates a cross product C = A x B.

Syntax

[Visual Basic .NET]
Public Function CreateCrossProductVector( _
   ByVal VectorName As String, _
   ByVal VectorA As IAgCrdnVector, _
   ByVal VectorB As IAgCrdnVector _
) As IAgCrdnVectorCross

[C#]
public IAgCrdnVectorCross CreateCrossProductVector(
string VectorName,
IAgCrdnVector VectorA,
IAgCrdnVector VectorB
);

[Managed C++]
public: IAgCrdnVectorCross^ CreateCrossProductVector(
String __gc ^ VectorName,
IAgCrdnVector ^ VectorA,
IAgCrdnVector ^ VectorB
);

[Java]
public IAgCrdnVectorCross createCrossProductVector(
String VectorName,
IAgCrdnVector VectorA,
IAgCrdnVector VectorB
);

[Unmanaged C++]
public: HRESULT CreateCrossProductVector(
BSTR VectorName,
IAgCrdnVector * VectorA,
IAgCrdnVector * VectorB,
IAgCrdnVectorCross ** ReturnValue
);

Parameters

VectorName
Specify a vector name.
VectorA
Specify the first of the two vectors used compute the cross product.
VectorB
Specify the second of the two vectors used compute the cross product.

Remarks

Spaces and most punctuation ( except for "-_().") cannot be used as a part of a component name when creating new components via VGT API.

Example

Creates a vector defined as a cross product of vectors A and B.
[C#] Copy Code
//Create a vector defined as cross product of vectors A and B. 
IAgCrdnVectorCross vector = provider.Vectors.Factory.CreateCrossProductVector( 
    "CrossVector", VectorA, VectorB); 
 

Creates a vector defined as a cross product of vectors A and B.
[Visual Basic .NET] Copy Code
'Create a vector defined as cross product of vectors A and B.
Dim vector As IAgCrdnVectorCross = provider.Vectors.Factory.CreateCrossProductVector("CrossVector", VectorA, VectorB)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1