nw::lyt::IsContain Function

Syntax

bool IsContain(
     Pane * pPane,
     const math::VEC2 & pos
);

Arguments

Name Description
pPane Pointer to the pane.
pos Location of the point to be checked.

Return Values

Returns true if the pane includes the point given by pos.

Description

Determines whether a pane includes a given point.

Determines whether a pane includes the point given for the pane.

Since the matrix values calculated by Pane::CalculateMtx are used, Pane::CalculateMtx must be called before calling this function.

This function assumes that the values of the x and y for pane rotation are zero. Correct determination is impossible for values other than zero.

See Also

nw::lyt::FindHitPane

Revision History

2009/09/18
Initial version.

CONFIDENTIAL