Contents

init(x:y:z:w:)

Creates a new vector from the given elements.

Declaration

init(x: Scalar, y: Scalar, z: Scalar, w: Scalar)

Parameters

  • x:

    The first element of the vector.

  • y:

    The second element of the vector.

  • z:

    The third element of the vector.

  • w:

    The fourth element of the vector.