wavelength 1.0.0
Loading...
Searching...
No Matches
rect.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/prnstream.h"
4
11struct Rect {
12 float x;
13 float y;
14 float w;
15 float h;
16};
17
27PrnStream &operator<<(PrnStream &stream, const Rect &rect);
Text output stream.
Definition prnstream.h:16
PrnStream & operator<<(PrnStream &stream, const Rect &rect)
Write a rectangle as (x: y: w: h:).
Axis-aligned rectangle given by a corner and a size.
Definition rect.h:11
float w
Definition rect.h:14
float x
Definition rect.h:12
float y
Definition rect.h:13
float h
Definition rect.h:15