Flutter Engine
The Flutter Engine
Classes | Functions
contour Namespace Reference

Classes

class  Contour
 
class  Contours
 
struct  Point
 

Functions

static SkIRect extend_rect (SkIRect r, Point p)
 

Function Documentation

◆ extend_rect()

static SkIRect contour::extend_rect ( SkIRect  r,
Point  p 
)
static

Definition at line 62 of file Contour.cpp.

62 {
63 int32_t left = std::min(p.x, r.fLeft),
64 top = std::min(p.y, r.fTop),
65 right = std::max(p.x, r.fRight),
66 bottom = std::max(p.y, r.fBottom);
67 return {left, top, right, bottom};
68}
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static float max(float r, float g, float b)
Definition: hsl.cpp:49
static float min(float r, float g, float b)
Definition: hsl.cpp:48
int32_t fBottom
larger y-axis bounds
Definition: SkRect.h:36
int32_t fTop
smaller y-axis bounds
Definition: SkRect.h:34
int32_t fLeft
smaller x-axis bounds
Definition: SkRect.h:33
int32_t fRight
larger x-axis bounds
Definition: SkRect.h:35