STK Vector Geometry ToolSend comments on this topic.
IAgCrdnAngleFactory Interface

Description

A Factory object to create angles.

Public Methods

Public Method CreateCreates a VGT angle using specified name, description and type.
Public Method IsTypeSupportedReturns true if the type is supported.

Example

Create an angle between two planes.
[C#]
//Create an angle between two planes.
IAgCrdnAngleBetweenPlanes angle = (IAgCrdnAngleBetweenPlanes)provider.Angles.Factory.Create(
    "AngleName", "Angle from one plane to another.", AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes);
Determine if the specified angle type is supported.
[C#]
// Check if the specified angle type is supported.
if (provider.Angles.Factory.IsTypeSupported(angleType))
{
    //Create an Angle with the supported Type
    IAgCrdnAngle angle = provider.Angles.Factory.Create(
        "MyAngle", string.Empty,
        angleType);
}
Create an angle between two planes.
[Visual Basic .NET]
'Create an angle between two planes.
Dim angle As IAgCrdnAngleBetweenPlanes = DirectCast(provider.Angles.Factory.Create("AngleName", "Angle from one plane to another.", AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes), IAgCrdnAngleBetweenPlanes)
Determine if the specified angle type is supported.
[Visual Basic .NET]
' Check if the specified angle type is supported.
If provider.Angles.Factory.IsTypeSupported(angleType) Then
	'Create an Angle with the supported Type
	Dim angle As IAgCrdnAngle = provider.Angles.Factory.Create("MyAngle", String.Empty, angleType)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.