Calculates the distance and closest points between two geometric objects.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function IClosestDistance( _
ByVal Object1 As System.Object, _
ByVal Object2 As System.Object, _
ByRef Point1 As System.Double, _
ByRef Point2 As System.Double _
) As System.Double |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim Object1 As System.Object
Dim Object2 As System.Object
Dim Point1 As System.Double
Dim Point2 As System.Double
Dim value As System.Double
value = instance.IClosestDistance(Object1, Object2, Point1, Point2) |
C# | |
---|
System.double IClosestDistance(
System.object Object1,
System.object Object2,
out System.double Point1,
out System.double Point2
) |
C++/CLI | |
---|
System.double IClosestDistance(
& System.Object^ Object1,
& System.Object^ Object2,
& [Out] System.double Point1,
& [Out] System.double Point2
) |
Parameters
- Object1
Pointer to first object
- Object2
Pointer to second object
- Point1
Array of x, y, z coordinates for the first point
- Point2
Array of x, y, z coordinates for the second point
Return Value
Minimum distance; -1.0 if no solution
Remarks
See Also
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0