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_point2d_f | 
|   | Represents an ordered pair of float 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 32 bits signed 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...
  | 
|   | 
 | 
| SB_INLINE sb_t_point  | sb_point (int x, int y) | 
|   | Inline constructor of structure sb_t_point.  More...
  | 
|   | 
| SB_INLINE sb_t_point2d_f  | sb_point2d_f (float x, float y) | 
|   | Inline constructor of structure sb_t_point2d_f.  More...
  | 
|   | 
| SB_INLINE sb_t_size  | sb_size (int width, int height) | 
|   | Inline constructor of structure sb_t_size.  More...
  | 
|   | 
| SB_INLINE sb_t_size_flt  | sb_size_flt (float width, float height) | 
|   | Inline constructor of structure sb_t_size_flt.  More...
  | 
|   | 
| SB_INLINE sb_t_range  | sb_range (int min, int max) | 
|   | Inline constructor of structure sb_t_range.  More...
  | 
|   | 
| SB_INLINE sb_t_range_flt  | sb_range_flt (float min, float max) | 
|   | Inline constructor of structure sb_t_range_flt.  More...
  | 
|   | 
| SB_INLINE sb_t_rect  | sb_rect (int x, int y, int width, int height) | 
|   | Inline constructor of structure sb_t_rect.  More...
  | 
|   | 
| sb_t_err  | sb_polyline_resize (sb_t_point2d_f *points, int size, sb_t_point2d_f center, float angle, float offset) | 
|   | Resize a polyline with respect of a center and an angle.  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 6546 of file sb.h.
 
 
◆ sb_point2d_f()
Inline constructor of structure sb_t_point2d_f. 
- Parameters
 - 
  
    | [in] | x | abscissa of the point  | 
    | [in] | y | ordinate of the point  | 
  
   
- Returns
 - The structure sb_t_point 
 
Definition at line 6560 of file sb.h.
 
 
◆ sb_polyline_resize()
Resize a polyline with respect of a center and an angle. 
- Parameters
 - 
  
    | [in,out] | points | Polyline points array  | 
    | [in] | size | Number of elements of the array points  | 
    | [in] | center | Centre of the resize  | 
    | [in] | angle | Resizing angle, positive clockwise.  | 
    | [in] | offset | Value, in pixel, of the resizing. If positive the polyline will be enlarged, vice versa it will be reduced.  | 
  
   
- Returns
 - If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err. 
 
 
 
◆ 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 6602 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 6616 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 6632 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 6574 of file sb.h.
 
 
◆ sb_size_flt()
      
        
          | SB_INLINE sb_t_size_flt sb_size_flt  | 
          ( | 
          float  | 
          width,  | 
        
        
           | 
           | 
          float  | 
          height  | 
        
        
           | 
          ) | 
           |  |