5 #ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_LINE_GEOMETRY_H_
6 #define FLUTTER_IMPELLER_ENTITY_GEOMETRY_LINE_GEOMETRY_H_
43 bool ComputeCorners(
Point corners[4],
45 bool extend_endpoints)
const;
48 bool allow_zero_length)
const;
56 std::optional<Rect> GetCoverage(
const Matrix&
transform)
const override;
LineGeometry(Point p0, Point p1, Scalar width, Cap cap)
static Scalar ComputePixelHalfWidth(const Matrix &transform, Scalar width)
bool IsAxisAlignedRect() const override
Scalar ComputeAlphaCoverage(const Matrix &transform) const override
bool CoversArea(const Matrix &transform, const Rect &rect) const override
Determines if this geometry, transformed by the given transform, will completely cover all surface ar...
Render passes encode render commands directed as one specific render target into an underlying comman...
A 4x4 matrix using column-major storage.