rect2 method

RectangleC rect2([
  1. num? x,
  2. num? y,
  3. num? w,
  4. num? h,
])

Implementation

RectangleC rect2([num? x, num? y, num? w, num? h])
  => rect2Ptr.set(x ?? rect2Ptr.ref.x, y ?? rect2Ptr.ref.y, w ?? rect2Ptr.ref.width, h ?? rect2Ptr.ref.height).ref;