Flutter Engine
The Flutter Engine
|
#include <EdgeAAQuad.h>
Public Types | |
enum class | Flags : uint8_t { kLeft = 0b0001 , kTop = 0b0010 , kRight = 0b0100 , kBottom = 0b1000 , kNone = 0b0000 , kAll = 0b1111 } |
Public Member Functions | |
EdgeAAQuad ()=delete | |
EdgeAAQuad (const SkRect &rect, SkEnumBitMask< Flags > edgeFlags) | |
EdgeAAQuad (const Rect &rect, SkEnumBitMask< Flags > edgeFlags) | |
EdgeAAQuad (const SkPoint points[4], SkEnumBitMask< Flags > edgeFlags) | |
EdgeAAQuad (const skvx::float4 &xs, const skvx::float4 &ys, SkEnumBitMask< Flags > edgeFlags) | |
Rect | bounds () const |
const skvx::float4 & | xs () const |
const skvx::float4 & | ys () const |
SkEnumBitMask< Flags > | edgeFlags () const |
bool | isRect () const |
EdgeAAQuad contains (x,y) coordinates for the four corners of a quadrilateral, assumed to be convex and in a consistent winding (CW vs. CCW is fine). Locally, the vertices are ordered "top-left", "top-right", "bottom-right", "bottom-left". The edges are in order left (p0-p3), top (p1-p0), right (p2-p1), and bottom (p3-p2).
Definition at line 24 of file EdgeAAQuad.h.
|
strong |
|
delete |
|
inline |
Definition at line 39 of file EdgeAAQuad.h.
|
inline |
Definition at line 44 of file EdgeAAQuad.h.
|
inline |
|
inline |
Definition at line 54 of file EdgeAAQuad.h.
|
inline |
Definition at line 61 of file EdgeAAQuad.h.
|
inline |
Definition at line 74 of file EdgeAAQuad.h.
|
inline |
Definition at line 76 of file EdgeAAQuad.h.
|
inline |
Definition at line 72 of file EdgeAAQuad.h.
|
inline |
Definition at line 73 of file EdgeAAQuad.h.