GetDistance

This function returns the shortest distance between two instances.

Syntax

//
//   Linux, MacOS and non-Visual Studio Windows solutions (pure C++11 / C++98)
//
double      GetDistance(
                    int64_t             firstOwlInstance,
                    int64_t             secondOwlInstance,
                    double              * pointFirstInstance,
                    double              * pointSecondInstance
                );


//
//   Visual Studio for Windows
//
double  __declspec(dllexport) __stdcall GetDistance(
                                                __int64             firstOwlInstance,
                                                __int64             secondOwlInstance,
                                                double              * pointFirstInstance,
                                                double              * pointSecondInstance
                                            );
    

Property firstOwlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree.

Property secondOwlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree.

Property pointFirstInstance

Size: 32 bit / 4 byte (reference)
The pointFirstInstance is expected to be a 3 element double value allocated by the host (i.e. 24 bytes). The function will fill in X, Y, Z as the point in the shape of the first instance closest to the second instance.

Property pointSecondInstance

Size: 32 bit / 4 byte (reference)
The pointSecondInstance is expected to be a 3 element double value allocated by the host (i.e. 24 bytes). The function will fill in X, Y, Z as the point in the shape of the second instance closest to the first instance.