init(x:y:)
Creates a new vector from the given elements.
Declaration
init(x: Scalar, y: Scalar)Parameters
- x:
The first element of the vector.
- y:
The second element of the vector.
Creates a new vector from the given elements.
init(x: Scalar, y: Scalar)The first element of the vector.
The second element of the vector.