Vector3.ConditionalSelect(Vector3, Vector3, Vector3) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Conditionally selects a value from two vectors on a bitwise basis.
public:
static System::Numerics::Vector3 ConditionalSelect(System::Numerics::Vector3 condition, System::Numerics::Vector3 left, System::Numerics::Vector3 right);
public static System.Numerics.Vector3 ConditionalSelect(System.Numerics.Vector3 condition, System.Numerics.Vector3 left, System.Numerics.Vector3 right);
static member ConditionalSelect : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Vector3
Public Shared Function ConditionalSelect (condition As Vector3, left As Vector3, right As Vector3) As Vector3
Parameters
- condition
- Vector3
The mask that is used to select a value from left or right.
- left
- Vector3
The vector that is selected when the corresponding bit in condition is one.
- right
- Vector3
The vector that is selected when the corresponding bit in condition is zero.
Returns
A vector whose bits come from left or right based on the value of condition.