Vector2.ConditionalSelect(Vector2, Vector2, Vector2) 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::Vector2 ConditionalSelect(System::Numerics::Vector2 condition, System::Numerics::Vector2 left, System::Numerics::Vector2 right);
public static System.Numerics.Vector2 ConditionalSelect(System.Numerics.Vector2 condition, System.Numerics.Vector2 left, System.Numerics.Vector2 right);
static member ConditionalSelect : System.Numerics.Vector2 * System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Function ConditionalSelect (condition As Vector2, left As Vector2, right As Vector2) As Vector2
Parameters
- condition
- Vector2
The mask that is used to select a value from left or right.
- left
- Vector2
The vector that is selected when the corresponding bit in condition is one.
- right
- Vector2
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.