L_VecGetParallelogram
#include "lvkrn.h"
L_INT EXT_FUNCTION 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.
This function will have no effect in the OpenGL and DirectX engines.
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: |
|
Topics: |
Example
/* This example will show the parallelogram of the vector drawing inside a message box */
void ShowParallelogram ( const pVECTORHANDLE pVector )
{
VECTORPOINT Min, Max;
L_TCHAR szBuffer[ 80 ];
L_VecGetParallelogram( pVector, &Min, &Max );
wsprintf( szBuffer, 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 );
}