FSelect

nn::math::FSelect Function

Syntax

f32 FSelect(
     f32 cond,
     f32 ifPos,
     f32 ifNeg
);

Parameters

Name Description
in cond Condition by which to select the return value.
in ifPos Return value when cond is greater than or equal to 0.
in ifNeg Return value when cond is negative.

Return Values

Returns ifPos if cond is greater than or equal to zero and ifNeg otherwise.

Description

Selects a value depending on the sign of the input.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL