Definitions of geometric entities.
More...
|
struct | sb_t_point |
| Represents an ordered pair of integer x and y coordinates that defines a point in a two-dimensional plane. More...
|
|
struct | sb_t_size |
| Represents an ordered pair of integer x and y length that defines a rectangle in a two-dimensional plane. More...
|
|
struct | sb_t_size_flt |
| Represents an ordered pair of float x and y length that defines a rectangle in a two-dimensional plane. More...
|
|
struct | sb_t_range |
| Represents an ordered pair of integer minimum and maximum values that defines a range. More...
|
|
struct | sb_t_range_flt |
| Represents an ordered pair of float minimum and maximum values that defines a range. More...
|
|
struct | sb_t_rect |
| Defines the position and size of a rectangle in a two-dimensional plane. More...
|
|
Definitions of geometric entities.
◆ sb_point()
Inline constructor of structure sb_t_point.
- Parameters
-
[in] | x | abscissa of the point |
[in] | y | ordinate of the point |
- Returns
- The structure sb_t_point
Definition at line 5226 of file sb.h.
◆ sb_range()
SB_INLINE sb_t_range sb_range |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
Inline constructor of structure sb_t_range.
- Parameters
-
[in] | min | minimum value |
[in] | max | maximum value |
- Returns
- The structure sb_t_size
Definition at line 5268 of file sb.h.
◆ sb_range_flt()
Inline constructor of structure sb_t_range_flt.
- Parameters
-
[in] | min | minimum value |
[in] | max | maximum value |
- Returns
- The structure sb_t_size
Definition at line 5282 of file sb.h.
◆ sb_rect()
SB_INLINE sb_t_rect sb_rect |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Inline constructor of structure sb_t_rect.
- Parameters
-
[in] | x | x coordinate of the upper left corner of the rectangle |
[in] | y | y coordinate of the upper left corner of the rectangle |
[in] | width | width of the rectangle |
[in] | height | height of the rectangle |
- Returns
- The structure sb_rect
Definition at line 5298 of file sb.h.
◆ sb_size()
SB_INLINE sb_t_size sb_size |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Inline constructor of structure sb_t_size.
- Parameters
-
[in] | width | width |
[in] | height | height |
- Returns
- The structure sb_t_size
Definition at line 5240 of file sb.h.
◆ sb_size_flt()
SB_INLINE sb_t_size_flt sb_size_flt |
( |
float |
width, |
|
|
float |
height |
|
) |
| |