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
Type: T

X coordinate

Y
Type: T

Y coordinate

Meta