Gets the parallelogram of a vector handle drawing.
#include "ltvkrn.h"
L_LVKRN_API L_INT L_VecGetParallelogram(pVector, pMin, pMax)
Pointer to a vector handle.
Pointer to a VECTORPOINT structure to be updated with the minimum point of the bounding parallelogram of the specified vector handle.
Pointer to a VECTORPOINT structure to be updated with
the maximum point of the bounding parallelogram of the specified vector handle.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
You can set the parallelogram with L_VecSetParallelogram.
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;
}