IXRPlaneProjection::GetLocalOffsetY (Compact 7)
3/12/2014
This method retrieves the translation distance of the object along its own y-axis.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetLocalOffsetY(
float* pLocalOffsetY
) = 0;
Parameters
- pLocalOffsetY
[out] Pointer to the translation distance of the object along its y-axis.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
In contrast to global offsets, which translate an object along the axes of the viewing screen, local offset properties translate an object along its own axes. After the object is rotated, its plane no longer matches the plane of the screen. Therefore, the rotation of the object determines the direction in which the object is translated. For example, if the object is rotated by using IXRPlaneProjection::SetRotationX, a translation along the local y-axis makes the object appear to move toward you, while any translation along the global y-axis still makes the object appear to move upward.
To move an object along one of the three-dimensional planes relative to it, use IXRPlaneProjection::SetLocalOffsetX, IXRPlaneProjection::SetLocalOffsetY, and IXRPlaneProjection::SetLocalOffsetZ.
.NET Framework Equivalent
System.Windows.Media.PlaneProjection.LocalOffsetY
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |