L_VecGetParallelogram

#include "ltvkrn.h"

L_LTVKRN_API L_INT L_VecGetParallelogram(pVector, pMin, pMax)

Gets the parallelogram of a vector handle drawing.

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle.

pVECTORPOINT pMin

Pointer to a VECTORPOINT structure to be updated with the minimum point of the bounding parallelogram of the specified vector handle.

pVECTORPOINT pMax

Pointer to a VECTORPOINT structure to be updated with

the maximum point of the bounding parallelogram of the specified vector handle.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

You can set the parallelogram with L_VecSetParallelogram.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will show the parallelogram of the vector drawing inside a message box.

L_LTVKRNTEX_API L_INT VecGetParallelogramExample(const pVECTORHANDLE pVector) 
{ 
   L_INT nRet; 
   VECTORPOINT Min, Max; 
   L_TCHAR szBuffer[ 80 ]; 
 
   nRet = L_VecGetParallelogram( pVector, &Min, &Max ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
    
   _stprintf_s( szBuffer,80, TEXT("%f,%f,%f to %f,%f,%f"), Min.x, Min.y, Min.z, Max.x, Max.y, Max.z ); 
   MessageBox( NULL, szBuffer, TEXT("Parallelogram"), MB_OK ); 
 
   return SUCCESS; 
} 

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help