STK Vector Geometry ToolSend comments on this topic.
CreateCrossProductVector Method (IAgCrdnVectorFactory)
See Also
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.
Windows





Windows & Linux

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
);
[Unmanaged C++]
public: HRESULT CreateCrossProductVector(
    BSTR VectorName,
    IAgCrdnVector * VectorA,
    IAgCrdnVector * VectorB,
    IAgCrdnVectorCross ** ppRetVal
);
[Java]
public IAgCrdnVectorCross createCrossProductVector(
    String VectorName,
    IAgCrdnVector VectorA,
    IAgCrdnVector VectorB
);
[Python - STK API ]
def CreateCrossProductVector(self, VectorName:str, VectorA:"IAgCrdnVector", VectorB:"IAgCrdnVector") -> "IAgCrdnVectorCross":

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.

See Also

Example

Creates a vector defined as a cross product of vectors A and B.
[C#]
//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]
'Create a vector defined as cross product of vectors A and B.
Dim vector As IAgCrdnVectorCross = provider.Vectors.Factory.CreateCrossProductVector("CrossVector", VectorA, VectorB)
© 2024 Analytical Graphics, Inc. All Rights Reserved.