Rect.this

Construct the rectangle from its coordinates

Be careful, the last two parameters are the width and height, not the right and bottom coordinates!

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

Parameters

rectLeft T

Left coordinate of the rectangle

rectTop T

Top coordinate of the rectangle

rectWidth T

Width of the rectangle

rectHeight T

Height of the rectangle

Meta