Public Methods

mw::nar::Projection_cl Class

Class that handles perspective transformation matrices.[Details]

#include <narProjection.h>

List of All Members

Public Methods

 Projection_cl(f32 w, f32 h, f32 near, f32 far, f32 aov=66.0)
void GetMTX44 (nn::math::MTX44 &r_Mtx) const
 Gets the perspective matrix.
voidGetTrimmed (nn::math::MTX44 &r_Mtx, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, f32 aov=66.f) const
 Returns the trimmed projection matrix.
voidSet (f32 w, f32 h, f32 near, f32 far, f32 aov=66.0)
 Sets the projection matrix.

Description

Class that handles perspective transformation matrices.


Constructors and Destructors

mw::nar::Projection_cl::Projection_cl ( f32 w,
f32 h,
f32 near,
f32 far,
f32 aov = 66.0 
) [inline]
Argument:
w Image width.
h Image height.
near Distance to near plane.
far Distance to far plane.
aov Angle of view, in degrees.

Functions

void mw::nar::Projection_cl::GetTrimmed ( nn::math::MTX44 &  r_Mtx,
f32 l,
f32 r,
f32 b,
f32 t,
f32 n,
f32 f,
f32 aov = 66.f 
) const

Returns the trimmed projection matrix.

Argument:
[out] r_Mtx 
[in] l,r,b,t Specifies the trimming position when the x,y coordinate range of the viewing frustum to exclude from trimming is set to [-1,1].
n Distance to near clipping plane.
f Distance to far clipping plane.
aov Angle of view, in degrees.
void mw::nar::Projection_cl::Set ( f32 w,
f32 h,
f32 near,
f32 far,
f32 aov = 66.0 
)

Sets the projection matrix.

Argument:
w Image width.
h Image height.
near Distance to near plane.
far Distance to far plane.
aov Angle of view, in degrees.

This class description was generated from the following file.


CONFIDENTIAL