VR-Forces 4.10 Class Documentation
 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)
 Normalized Device Coordinates (-1,1) More...
 
static Vector2_int project (const DtVector3< T > &vPosition, const DtMatrix4< T > &view_projection_matrix, const Vector2_uint32 &viewPortSize, bool clip=true)
 Window Coordinates OpenGL: Lower left of window is 0,0. More...
 
static DtScreenRect screenAABB (const DtAxisAlignedBoundingBox< T > &worldBox, const DtMatrix4< T > &view_projection_matrix, const Vector2_uint32 &viewPortSize, bool clip=true)
 Project box into screen space and compute its bounds. More...
 

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
ifclip is 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
ifclip is 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
ifclip is 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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)