nn::ulcd::CTR::StereoCamera::GetDistanceToLevel Member Function

Syntax

#include <nn/ulcd.h>

f32 GetDistanceToLevel(
     void
) const;

Arguments

None.

Return Values

Distance from camera to the base plane.

Description

Gets the distance from the camera to the base plane.

Returns the distance between (1) the new camera position after correction using the calculations of the CalculateMatricesReal function and (2) the position in the virtual space that ties images to the surface of the LCD (the base plane).

If the last executed function is the CalculateMatrices function, this function returns the value provided for the depthLevel argument unchanged.

The calculations made by this function are based on the results obtained during the last call to either CalculateMatrices or CalculateMatricesReal.

Revision History

2010/04/02
Initial version.

CONFIDENTIAL