Creates an all-false vector, specifies x/y, or copies a 2D vector with nonzero converted to true.
...argsReadonlyscalarBoolean scalar type with components stored as 0/1 bytes.
X boolean component.
Set the X boolean component.
valueY boolean component.
Set the Y boolean component.
valueProtectedcheckProtectedcheckReturns a copy of this vector; throws RangeError if any rhs component is false.
rhsReturns a new vector with component-wise logical AND.
rhsComputes the 2D cross product and converts nonzero to true.
rhsComputes the dot product and converts it to boolean; returns true if any corresponding component pair is both true.
rhsReturns whether at least one component is true.
Returns a new vector from (-y, x) converted to boolean components, namely (y, x).
sf::Vector2; each component occupies one canonical 0/1 byte.