L_VecGetParallelogram

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecGetParallelogram(pVector, pMin, pMax)

const pVECTORHANDLE pVector;

pointer to a vector handle

pVECTORPOINT pMin;

pointer to a vector point

pVECTORPOINT pMax;

pointer to a vector point

Gets the parallelogram of a vector handle drawing.

Parameter

Description

pVector

Pointer to a vector handle.

pMin

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

pMax

Pointer to a VECTORPOINT structure to be updated with

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

Returns

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

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_VecSetParallelogram.

Topics:

Working with Vector Handles

Example

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

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Vector C API Help