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

rectTop
Type: T

Top coordinate of the rectangle

rectWidth
Type: T

Width of the rectangle

rectHeight
Type: T

Height of the rectangle

Meta