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