Converts the current vector's x and y values into a MediaTrackConstraints object,
setting the width and height constraints with min and ideal properties.
An object specifying the minimum and ideal width and height for media track constraints, based on the vector's x (width) and y (height) values.
Returns a string representation of the vector in the format "x : y".
The string representation of the vector.
StaticisDetermines whether the provided input is a valid Vector2 object.
A valid Vector2 object must have numeric x and y properties.
The value to check for Vector2 validity.
true if the input has numeric x and y properties, otherwise false.
Represents a 2-dimensional vector with
xandycoordinates.Provides utility methods for string representation, conversion to media constraints, and validation of vector-like objects.
Example