Jolt Physics
A multi core friendly Game Physics Engine
|
Go to the source code of this file.
Functions | |
JPH_NAMESPACE_BEGIN JPH_INLINE int | SortReverseAndStore (Vec4Arg inValues, float inMaxValue, UVec4 &ioIdentifiers, float *outValues) |
JPH_INLINE int | CountAndSortTrues (UVec4Arg inValue, UVec4 &ioIdentifiers) |
Shift the elements so that the identifiers that correspond with the trues in inValue come first
inValue | Values to test for true or false |
ioIdentifiers | the identifiers that are shifted, on return they are shifted |
JPH_NAMESPACE_BEGIN JPH_INLINE int SortReverseAndStore | ( | Vec4Arg | inValues, |
float | inMaxValue, | ||
UVec4 & | ioIdentifiers, | ||
float * | outValues | ||
) |
This function will sort values from high to low and only keep the ones that are less than inMaxValue
inValues | Values to be sorted |
inMaxValue | Values need to be less than this to keep them |
ioIdentifiers | 4 identifiers that will be sorted in the same way as the values |
outValues | The values are stored here from high to low |