VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Static Public Member Functions
makVrv::ProjectionUtils< T > Class Template Reference

Static Public Member Functions

static DtVector2< T > project (const DtVector3< T > &vPosition, const DtMatrix4< T > &view_projection_matrix, bool clip=true)
 
static Vector2_int project (const DtVector3< T > &vPosition, const DtMatrix4< T > &view_projection_matrix, const Vector2_uint32 &viewPortSize, bool clip=true)
 
static DtScreenRect screenAABB (const DtAxisAlignedBoundingBox< T > &worldBox, const DtMatrix4< T > &view_projection_matrix, const Vector2_uint32 &viewPortSize, bool clip=true)
 

Member Function Documentation

template<class T >
static DtVector2<T> makVrv::ProjectionUtils< T >::project ( const DtVector3< T > &  vPosition,
const DtMatrix4< T > &  view_projection_matrix,
bool  clip = true 
)
static

Normalized Device Coordinates (-1,1)

Parameters
vPositionThe 3D position to project.
view_projection_matrixThe combined view-projection matrix.
clipIf false, the result will not be clipped against [0..1].
template<class T >
static Vector2_int makVrv::ProjectionUtils< T >::project ( const DtVector3< T > &  vPosition,
const DtMatrix4< T > &  view_projection_matrix,
const Vector2_uint32 &  viewPortSize,
bool  clip = true 
)
static

Window Coordinates OpenGL: Lower left of window is 0,0. Upper right is w,h. We use OpenGL convention DirectX: Upper left of window is 0,0. Bottom right is w,h.

Parameters
vPositionThe 3D position to project.
view_projection_matrixThe combined view-projection matrix.
viewPortSizeThe viewport dimensions in pixels.
clipIf false, the result will not be clipped against the viewport size.
template<class T >
static DtScreenRect makVrv::ProjectionUtils< T >::screenAABB ( const DtAxisAlignedBoundingBox< T > &  worldBox,
const DtMatrix4< T > &  view_projection_matrix,
const Vector2_uint32 &  viewPortSize,
bool  clip = true 
)
static

Project box into screen space and compute its bounds.

Parameters
worldBoxThe world-space axis-aligned bounding box to project.
view_projection_matrixThe combined view-projection matrix.
viewPortSizeThe viewport dimensions in pixels.
clipIf false, the result will not be clipped against the viewport size.

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)