Vector2.this

Construct the vector from its coordinates.

  1. this(T X, T Y)
    struct Vector2(T)
    this
    (
    T X
    ,
    T Y
    )
    if (
    isNumeric!(T) ||
    is(T == bool)
    )
  2. this(Vector2!(E) otherVector)

Parameters

X T

X coordinate

Y T

Y coordinate

Meta