STK Vector Geometry ToolSend comments on this topic.
HasCyclicDependency Method (IAgCrdnAngleRefTo)
See Also
Angle
Specify a valid angle object.
Windows





Windows & Linux

Description

Tests whether the input component and the target component form a cyclic dependency.

Syntax

[Visual Basic .NET]
Public Function HasCyclicDependency( _
    ByVal Angle As IAgCrdnAngle _
) As Boolean
[C#]
public bool HasCyclicDependency(
    IAgCrdnAngle Angle
);
[Managed C++]
public: bool HasCyclicDependency(
    IAgCrdnAngle ^ Angle
);
[Unmanaged C++]
public: HRESULT HasCyclicDependency(
    IAgCrdnAngle * Angle,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool hasCyclicDependency(
    IAgCrdnAngle Angle
);
[Python - STK API ]
def HasCyclicDependency(self, Angle:"IAgCrdnAngle") -> bool:

Parameters

Angle
Specify a valid angle object.

See Also

Example

Check whether the reference angle has a cyclic dependency on another angle.
[C#]
//Check if the reference angle has a cyclic dependency on another angle.
if (angleRefTo.HasCyclicDependency(angle))
{
    Console.WriteLine("The angle {0} has a cyclic dependency on angle {1}.", ((IAgCrdn)angleRefTo.GetAngle()).Name, ((IAgCrdn)angle).Name);
}
Check whether the reference angle has a cyclic dependency on another angle.
[Visual Basic .NET]
'Check if the reference angle has a cyclic dependency on another angle.
If angleRefTo.HasCyclicDependency(angle) Then
	Console.WriteLine("The angle {0} has a cyclic dependency on angle {1}.", DirectCast(angleRefTo.GetAngle(), IAgCrdn).Name, DirectCast(angle, IAgCrdn).Name)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.