Rect.this

Construct the rectangle from position and size

Be careful, the last parameter is the size, not the bottom-right corner!

  1. this(T rectLeft, T rectTop, T rectWidth, T rectHeight)
  2. this(Vector2!(T) position, Vector2!(T) size)
    struct Rect(T)
    if (
    isNumeric!(T)
    )

Parameters

position
Type: Vector2!(T)

Position of the top-left corner of the rectangle

size
Type: Vector2!(T)

Size of the rectangle

Meta